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