diff --git a/thefuck/rules/git_log.py b/thefuck/rules/git_log.py new file mode 100644 index 00000000..2655222d --- /dev/null +++ b/thefuck/rules/git_log.py @@ -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)