This commit is contained in:
Elias Wernicke 2023-07-30 18:17:09 -07:00 committed by GitHub
commit a43dee669a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)