mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
improve match method
This commit is contained in:
parent
5314f6b831
commit
d2c622e4d1
@ -1,6 +1,7 @@
|
||||
def match(command):
|
||||
return ('Untracked files' in command.output or '''use "git add"''' in command.output
|
||||
or 'Changes not staged for commit' in command.output)
|
||||
return 'git commit ' in command.script and ('Untracked files' in command.output
|
||||
or '''use "git add"''' in command.output or 'Changes not staged for commit'
|
||||
in command.output)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
|
Loading…
x
Reference in New Issue
Block a user