Changed /commit command to commit outstanding changes to the repo instead of chat session files.

This commit is contained in:
Paul Gauthier 2023-05-22 09:54:37 -07:00
parent 76fb08f9c9
commit e09b1cf2d7
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ For more information, run `aider --help`.
* `/add <file>`: Add matching files to the chat session. * `/add <file>`: Add matching files to the chat session.
* `/drop <file>`: Remove matching files from the chat session. * `/drop <file>`: Remove matching files from the chat session.
* `/ls`: List all known files and those included in the chat session. * `/ls`: List all known files and those included in the chat session.
* `/commit [message]`: Commit outstanding changes to the chat session files. Use this to commit edits you made outside the chat, with your editor or git commands. aider will provide a commit message if you don't. * `/commit [message]`: Commit outstanding changes to the repo. Use this to commit edits you made outside the chat, with your editor or git commands. aider will provide a commit message if you don't.
* `/undo`: Undo the last git commit if it was done by aider. * `/undo`: Undo the last git commit if it was done by aider.
* `/diff`: Display the diff of the last aider commit. * `/diff`: Display the diff of the last aider commit.
* `/run <command>`: Run a shell command and optionally add the output to the chat. * `/run <command>`: Run a shell command and optionally add the output to the chat.

View file

@ -72,7 +72,7 @@ class Commands:
self.io.tool_error(f"Error: {first_word} is not a valid command.") self.io.tool_error(f"Error: {first_word} is not a valid command.")
def cmd_commit(self, args): def cmd_commit(self, args):
"Commit edits to chat session files made outside the chat (commit message optional)" "Commit edits to the repo made outside the chat (commit message optional)"
if not self.coder.repo: if not self.coder.repo:
self.io.tool_error("No git repository found.") self.io.tool_error("No git repository found.")