This commit is contained in:
Paul Gauthier 2023-08-17 10:40:56 -07:00
parent d981de5f5f
commit 0a653d34d3
2 changed files with 0 additions and 21 deletions

View file

@ -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