Whitelist more /cmds for no dirty commit

This commit is contained in:
Paul Gauthier 2023-07-16 13:42:36 -03:00
parent 4447f61dc6
commit 5dc7bc055e
3 changed files with 26 additions and 2 deletions

View file

@ -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: