mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
cleanup
This commit is contained in:
parent
d981de5f5f
commit
0a653d34d3
2 changed files with 0 additions and 21 deletions
|
@ -409,11 +409,6 @@ class Coder:
|
|||
self.commands,
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
if not inp:
|
||||
return
|
||||
|
||||
|
@ -900,20 +895,6 @@ class Coder:
|
|||
self.io.tool_output("No changes made to git tracked files.")
|
||||
return self.gpt_prompts.files_content_gpt_no_edits
|
||||
|
||||
def should_dirty_commit(self, inp):
|
||||
return
|
||||
cmds = self.commands.matching_commands(inp)
|
||||
if cmds:
|
||||
matching_commands, _, _ = cmds
|
||||
if len(matching_commands) == 1:
|
||||
cmd = matching_commands[0][1:]
|
||||
if cmd in "add clear commit diff drop exit help ls tokens".split():
|
||||
return
|
||||
|
||||
if self.last_asked_for_commit_time >= self.get_last_modified():
|
||||
return
|
||||
return True
|
||||
|
||||
def dirty_commit(self):
|
||||
if not self.need_commit_before_edits:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue