diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index d3d0d8ff9..f33d42171 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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 diff --git a/aider/main.py b/aider/main.py index cdc58d0b6..540c19bfe 100644 --- a/aider/main.py +++ b/aider/main.py @@ -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") - # coder.dirty_commit() - if args.message: io.tool_output() coder.run(with_message=args.message)