Offer git commit --amend after previous git commit (#764)

This commit is contained in:
David Hart
2018-01-05 21:24:43 +00:00
committed by Joseph Frazier
parent 7b10a86267
commit 797ca1c564
3 changed files with 37 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
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):
return 'git commit --amend'