mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
sssh
This commit is contained in:
parent
14b24dc2fd
commit
74875eac6e
2 changed files with 2 additions and 7 deletions
|
@ -381,8 +381,7 @@ class Coder:
|
|||
self.commands,
|
||||
)
|
||||
|
||||
if self.should_dirty_commit(inp):
|
||||
self.dirty_commit()
|
||||
if self.should_dirty_commit(inp) and self.dirty_commit():
|
||||
if inp.strip():
|
||||
self.io.tool_output("Use up-arrow to retry previous command:", inp)
|
||||
return
|
||||
|
@ -424,6 +423,7 @@ class Coder:
|
|||
|
||||
# files changed, move cur messages back behind the files messages
|
||||
self.move_back_cur_messages(self.gpt_prompts.files_content_local_edits)
|
||||
return True
|
||||
|
||||
def fmt_system_reminder(self):
|
||||
prompt = self.gpt_prompts.system_reminder
|
||||
|
|
|
@ -61,7 +61,6 @@ class AiderRepo:
|
|||
commit_message = message
|
||||
else:
|
||||
diffs = self.get_diffs(False)
|
||||
dump(diffs)
|
||||
commit_message = self.get_commit_message(diffs, context)
|
||||
|
||||
if not commit_message:
|
||||
|
@ -100,8 +99,6 @@ class AiderRepo:
|
|||
content += context + "\n"
|
||||
content += diffs
|
||||
|
||||
dump(content)
|
||||
|
||||
messages = [
|
||||
dict(role="system", content=prompts.commit_system),
|
||||
dict(role="user", content=content),
|
||||
|
@ -146,8 +143,6 @@ class AiderRepo:
|
|||
except git.exc.GitCommandError:
|
||||
current_branch_has_commits = False
|
||||
|
||||
dump(current_branch_has_commits)
|
||||
|
||||
if not current_branch_has_commits:
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue