1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-20 08:46:14 +00:00
Files
thefuck/thefuck/rules/git_branch_delete.py
2015-07-20 00:08:01 +02:00

13 lines
305 B
Python

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')