Merge 3a22b56a93 into 62e0767c50
This commit is contained in:
commit
a43dee669a
|
|
@ -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)
|
||||
Loading…
Reference in New Issue