mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
cleanup
This commit is contained in:
parent
3b9e000892
commit
b3d9d0098e
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ class Commands:
|
||||||
return
|
return
|
||||||
|
|
||||||
last_commit_hash = self.coder.repo.get_head_commit_sha(short=True)
|
last_commit_hash = self.coder.repo.get_head_commit_sha(short=True)
|
||||||
last_commit_message = self.coder.repo.get_head_commit_message("(unknown)")
|
last_commit_message = self.coder.repo.get_head_commit_message("(unknown)").strip()
|
||||||
|
|
||||||
if last_commit_hash not in self.coder.aider_commit_hashes:
|
if last_commit_hash not in self.coder.aider_commit_hashes:
|
||||||
self.io.tool_error("The last commit was not made by aider in this chat session.")
|
self.io.tool_error("The last commit was not made by aider in this chat session.")
|
||||||
|
@ -483,7 +483,7 @@ class Commands:
|
||||||
|
|
||||||
# Get the current HEAD after undo
|
# Get the current HEAD after undo
|
||||||
current_head_hash = self.coder.repo.get_head_commit_sha(short=True)
|
current_head_hash = self.coder.repo.get_head_commit_sha(short=True)
|
||||||
current_head_message = self.coder.repo.get_head_commit_message("(unknown)")
|
current_head_message = self.coder.repo.get_head_commit_message("(unknown)").strip()
|
||||||
self.io.tool_output(f"Now at: {current_head_hash} {current_head_message}")
|
self.io.tool_output(f"Now at: {current_head_hash} {current_head_message}")
|
||||||
|
|
||||||
if self.coder.main_model.send_undo_reply:
|
if self.coder.main_model.send_undo_reply:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue