mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-20 20:22:41 +01:00
Improve the git_stash rule
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
def match(command, settings):
|
def match(command, settings):
|
||||||
return ('git' in command.script
|
# catches "Please commit or stash them" and "Please, commit your changes or
|
||||||
and 'Please commit or stash them.' in command.stderr)
|
# 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):
|
def get_new_command(command, settings):
|
||||||
|
Reference in New Issue
Block a user