fix: Add show_undo_hint method to display undo hint after committing changes

This commit is contained in:
Paul Gauthier 2024-08-09 19:40:16 -04:00 committed by Paul Gauthier (aider)
parent 55d55c32b2
commit 82679ee66b

View file

@ -1661,6 +1661,7 @@ class Coder:
if self.show_diffs:
self.commands.cmd_diff()
def show_undo_hint(self):
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
def dirty_commit(self):