mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
Improve the git_stash rule
This commit is contained in:
parent
8ac4dafe6d
commit
65c624ad52
@ -1,6 +1,7 @@
|
||||
def match(command, settings):
|
||||
return ('git' in command.script
|
||||
and 'Please commit or stash them.' in command.stderr)
|
||||
# catches "Please commit or stash them" and "Please, commit your changes or
|
||||
# stash them before you can switch branches."
|
||||
return 'git' in command.script and 'or stash them' in command.stderr
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
|
Loading…
x
Reference in New Issue
Block a user