mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Changed /commit
command to commit outstanding changes to the repo instead of chat session files.
This commit is contained in:
parent
76fb08f9c9
commit
e09b1cf2d7
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ For more information, run `aider --help`.
|
|||
* `/add <file>`: Add matching files to the chat session.
|
||||
* `/drop <file>`: Remove matching files from 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.
|
||||
* `/diff`: Display the diff of the last aider commit.
|
||||
* `/run <command>`: Run a shell command and optionally add the output to the chat.
|
||||
|
|
|
@ -72,7 +72,7 @@ class Commands:
|
|||
self.io.tool_error(f"Error: {first_word} is not a valid command.")
|
||||
|
||||
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:
|
||||
self.io.tool_error("No git repository found.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue