From 82679ee66b75e8cccde1feb1279a961c78a863d7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Aug 2024 19:40:16 -0400 Subject: [PATCH] fix: Add show_undo_hint method to display undo hint after committing changes --- aider/coders/base_coder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index d185ab77c..f12637397 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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):