mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 18:21:10 +00:00
parent
dbf20ebc73
commit
db76462802
@ -1,7 +1,12 @@
|
|||||||
|
from thefuck import utils
|
||||||
|
|
||||||
|
|
||||||
|
@utils.git_support
|
||||||
def match(command, settings):
|
def match(command, settings):
|
||||||
return ('git branch -d' in command.script
|
return ('git branch -d' in command.script
|
||||||
and 'If you are sure you want to delete it' in command.stderr)
|
and 'If you are sure you want to delete it' in command.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
@utils.git_support
|
||||||
def get_new_command(command, settings):
|
def get_new_command(command, settings):
|
||||||
return command.script.replace('-d', '-D')
|
return command.script.replace('-d', '-D')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user