1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

Merge pull request #293 from mcarton/git-aliases

#292 #290 Use @git_support in all git rules
This commit is contained in:
Vladimir Iakovlev 2015-07-20 01:25:25 +03:00
commit 7e03b55729

View File

@ -1,7 +1,12 @@
from thefuck import utils
@utils.git_support
def match(command, settings):
return ('git branch -d' in command.script
and 'If you are sure you want to delete it' in command.stderr)
@utils.git_support
def get_new_command(command, settings):
return command.script.replace('-d', '-D')