1
0
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:
Tobias Bechtold 2019-02-06 16:16:47 +01:00 committed by GitHub
parent 2d81166213
commit 4b67eba2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
thefuck/rules/git_log.py Normal file
View 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)