1
0
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:
Nikos Kakonas 2022-06-10 16:05:14 +00:00
parent 5314f6b831
commit d2c622e4d1

View File

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