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, 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: if not inp:
return return
@ -900,20 +895,6 @@ class Coder:
self.io.tool_output("No changes made to git tracked files.") self.io.tool_output("No changes made to git tracked files.")
return self.gpt_prompts.files_content_gpt_no_edits 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): def dirty_commit(self):
if not self.need_commit_before_edits: if not self.need_commit_before_edits:
return return

View file

@ -522,8 +522,6 @@ def main(argv=None, input=None, output=None, force_git_root=None):
io.tool_output("Use /help to see in-chat commands, run with --help to see cmd line args") io.tool_output("Use /help to see in-chat commands, run with --help to see cmd line args")
# coder.dirty_commit()
if args.message: if args.message:
io.tool_output() io.tool_output()
coder.run(with_message=args.message) coder.run(with_message=args.message)