mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
restore --show-diffs functionality #607
This commit is contained in:
parent
2ed5e45677
commit
52ac35fcd2
2 changed files with 3 additions and 1 deletions
|
@ -1328,6 +1328,8 @@ class Coder:
|
|||
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,
|
||||
|
|
|
@ -356,7 +356,7 @@ class Commands:
|
|||
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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue