1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-23 21:39:32 +00:00
thefuck/thefuck/rules/git_branch_list.py
2016-01-29 13:09:40 +03:00

15 lines
379 B
Python

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