mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 15:20:42 +01:00
15 lines
379 B
Python
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')
|