mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
get_head* -> get_head_commit*
This commit is contained in:
parent
d2acb9c3b0
commit
3b9e000892
3 changed files with 14 additions and 14 deletions
|
@ -713,7 +713,7 @@ class Coder:
|
|||
self.shell_commands = []
|
||||
|
||||
if self.repo:
|
||||
self.commit_before_message.append(self.repo.get_head_sha())
|
||||
self.commit_before_message.append(self.repo.get_head_commit_sha())
|
||||
|
||||
def run(self, with_message=None, preproc=True):
|
||||
try:
|
||||
|
@ -1867,7 +1867,7 @@ class Coder:
|
|||
def show_undo_hint(self):
|
||||
if not self.commit_before_message:
|
||||
return
|
||||
if self.commit_before_message[-1] != self.repo.get_head_sha():
|
||||
if self.commit_before_message[-1] != self.repo.get_head_commit_sha():
|
||||
self.io.tool_output("You can use /undo to undo and discard each aider commit.")
|
||||
|
||||
def dirty_commit(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue