mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 14:48:49 +00:00
Added git lock rule
This commit is contained in:
parent
2d81166213
commit
4b67eba2ea
10
thefuck/rules/git_log.py
Normal file
10
thefuck/rules/git_log.py
Normal file
@ -0,0 +1,10 @@
|
||||
from thefuck.shells import shell
|
||||
from thefuck.specific.git import git_support
|
||||
|
||||
@git_support
|
||||
def match(command):
|
||||
return 'git: \'lock\' is not a git command.' in command.output
|
||||
|
||||
@git_support
|
||||
def get_new_command(command):
|
||||
return command.script.replace('lock', 'log', 1)
|
Loading…
x
Reference in New Issue
Block a user