Added Commit message rule

Fixes #1334
This commit is contained in:
Wernicke, Elias 2022-09-30 12:06:40 +00:00
parent ceeaeab94b
commit 3a22b56a93

View File

@ -0,0 +1,12 @@
from thefuck.specific.git import git_support
@git_support
def match(command):
return "commit" in command.script_parts
@git_support
def get_new_command(command):
command_parts = command.script_parts[:]
index = command_parts.index('commit') + 1
command_parts.insert(index, '-m')
return ' '.join(command_parts)