Add a git_stash rule

This commit is contained in:
mcarton
2015-05-12 19:41:00 +02:00
parent 779e29906e
commit 8ac4dafe6d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
def match(command, settings):
return ('git' in command.script
and 'Please commit or stash them.' in command.stderr)
def get_new_command(command, settings):
return 'git stash && ' + command.script