#N/A: Add new git_help_aliased rule

This commit is contained in:
Pablo Santiago Blum de Aguiar
2016-03-12 18:51:47 -03:00
parent 4fb99fd7a8
commit bcab700215
3 changed files with 37 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from thefuck.specific.git import git_support
@git_support
def match(command):
return 'help' in command.script and ' is aliased to ' in command.stdout
@git_support
def get_new_command(command):
aliased = command.stdout.split('`', 2)[2].split("'", 1)[0].split(' ', 1)[0]
return 'git help {}'.format(aliased)