From db76462802a119aa70744e01ee6278a2f23743c1 Mon Sep 17 00:00:00 2001 From: mcarton Date: Sun, 19 Jul 2015 23:55:56 +0200 Subject: [PATCH] #292 #290 Use @git_support in all git rules --- thefuck/rules/git_branch_delete.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thefuck/rules/git_branch_delete.py b/thefuck/rules/git_branch_delete.py index ad465af..f4bf218 100644 --- a/thefuck/rules/git_branch_delete.py +++ b/thefuck/rules/git_branch_delete.py @@ -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')