From 317412f854019b974a1f19d7621e7df85ad9d54f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 21 Jul 2023 13:56:48 -0300 Subject: [PATCH] noop --- aider/coders/base_coder.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 34ffdf92a..3d52c4b80 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -351,19 +351,6 @@ class Coder: self.last_keyboard_interrupt = now - def should_dirty_commit(self, inp): - 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 move_back_cur_messages(self, message): self.done_messages += self.cur_messages if message: @@ -396,6 +383,19 @@ class Coder: return self.send_new_user_message(inp) + def should_dirty_commit(self, inp): + 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.dirty_commits: return