Improve commit message display for /undo command

This commit is contained in:
Paul Gauthier 2024-07-29 10:55:42 -03:00 committed by Paul Gauthier (aider)
parent 93a48e5a4c
commit 8543a97e76

View file

@ -1520,7 +1520,7 @@ class Coder:
if self.show_diffs:
self.commands.cmd_diff()
self.io.tool_output("You can use /undo to revert and discard the committed changes.")
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
return self.gpt_prompts.files_content_gpt_edits.format(
hash=commit_hash,
message=commit_message,