diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 32c0d72b7..76081a916 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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, diff --git a/aider/commands.py b/aider/commands.py index c42e52c61..301029ca3 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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.")