Skip to content

Commit

Permalink
restore --show-diffs functionality #607
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed May 23, 2024
1 parent 2ed5e45 commit 52ac35f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aider/coders/base_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,8 @@ def auto_commit(self, edited):
commit_hash, commit_message = res
self.last_aider_commit_hash = commit_hash
self.last_aider_commit_message = commit_message
if self.show_diffs:
self.commands.cmd_diff()

return self.gpt_prompts.files_content_gpt_edits.format(
hash=commit_hash,
Expand Down
2 changes: 1 addition & 1 deletion aider/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def cmd_undo(self, args):
if self.coder.main_model.send_undo_reply:
return prompts.undo_command_reply

def cmd_diff(self, args):
def cmd_diff(self, args=""):
"Display the diff of the last aider commit"
if not self.coder.repo:
self.io.tool_error("No git repository found.")
Expand Down

0 comments on commit 52ac35f

Please sign in to comment.