From 691302d6b1ccabd55e0dcab32679483deffc832c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Jul 2023 13:54:10 +0900 Subject: [PATCH] feat : Replace 'commit' with 'git commit',which is a common mistake beginners makes --- ...ut-master-no-git => git-checkout-master-no-git.py} | 0 thefuck/rules/git-commit-no-git.py | 11 +++++++++++ 2 files changed, 11 insertions(+) rename thefuck/rules/{git-checkout-master-no-git => git-checkout-master-no-git.py} (100%) diff --git a/thefuck/rules/git-checkout-master-no-git b/thefuck/rules/git-checkout-master-no-git.py similarity index 100% rename from thefuck/rules/git-checkout-master-no-git rename to thefuck/rules/git-checkout-master-no-git.py diff --git a/thefuck/rules/git-commit-no-git.py b/thefuck/rules/git-commit-no-git.py index e69de29..d47d24f 100644 --- a/thefuck/rules/git-commit-no-git.py +++ b/thefuck/rules/git-commit-no-git.py @@ -0,0 +1,11 @@ +def match(command): + + return ( + command.script == "commit" + ) + + + + +def get_new_command(command): + return (command.script.replace("commit","git commit",1))