mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
noop
This commit is contained in:
parent
01ea691957
commit
317412f854
1 changed files with 13 additions and 13 deletions
|
@ -351,19 +351,6 @@ class Coder:
|
||||||
|
|
||||||
self.last_keyboard_interrupt = now
|
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):
|
def move_back_cur_messages(self, message):
|
||||||
self.done_messages += self.cur_messages
|
self.done_messages += self.cur_messages
|
||||||
if message:
|
if message:
|
||||||
|
@ -396,6 +383,19 @@ class Coder:
|
||||||
|
|
||||||
return self.send_new_user_message(inp)
|
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):
|
def dirty_commit(self):
|
||||||
if not self.dirty_commits:
|
if not self.dirty_commits:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue