working undo

This commit is contained in:
Paul Gauthier 2024-04-27 16:47:07 -07:00
parent d0d5326228
commit ce5abf8c79
2 changed files with 76 additions and 18 deletions

View file

@ -271,9 +271,7 @@ class Commands:
self.coder.repo.repo.git.reset("--soft", "HEAD~1")
self.io.tool_output(
f"{last_commit.message.strip()}\n"
f"The above commit {self.coder.last_aider_commit_hash} "
"was reset and removed from git.\n"
f"Commit `{self.coder.last_aider_commit_hash}` was reset and removed from git.\n"
)
if self.coder.main_model.send_undo_reply: