1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-15 07:10:52 +01:00
thefuck/thefuck/rules/git_branch_list.py
2015-08-26 21:43:20 +02:00

14 lines
357 B
Python

from thefuck import shells
from thefuck.specific.git import git_support
@git_support
def match(command, settings):
# catches "git branch list" in place of "git branch"
return command.script.split()[1:] == 'branch list'.split()
@git_support
def get_new_command(command, settings):
return shells.and_('git branch --delete list', 'git branch')