mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Whitelist more /cmds for no dirty commit
This commit is contained in:
parent
4447f61dc6
commit
5dc7bc055e
3 changed files with 26 additions and 2 deletions
|
@ -407,8 +407,8 @@ class Coder:
|
|||
if cmds:
|
||||
matching_commands, _, _ = cmds
|
||||
if len(matching_commands) == 1:
|
||||
cmd = matching_commands[0]
|
||||
if cmd in ("/exit", "/commit"):
|
||||
cmd = matching_commands[0][1:]
|
||||
if cmd in "add clear commit diff drop exit help ls tokens".split():
|
||||
return
|
||||
|
||||
if not self.dirty_commits:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue