From e09b1cf2d73144e38aca26b1b3ee68c53729f4bf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 22 May 2023 09:54:37 -0700 Subject: [PATCH] Changed `/commit` command to commit outstanding changes to the repo instead of chat session files. --- README.md | 2 +- aider/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 008b2d91a..dee2cf62d 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ For more information, run `aider --help`. * `/add `: Add matching files to the chat session. * `/drop `: 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 `: Run a shell command and optionally add the output to the chat. diff --git a/aider/commands.py b/aider/commands.py index a5b268482..4e1b88067 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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.")