1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-21 10:08:59 +00:00
thefuck/thefuck/rules/git_commit_amend.py
2020-03-24 10:10:33 +00:00

12 lines
232 B
Python

from thefuck.specific.git import git_support
@git_support
def match(command):
return ('commit' in command.script_parts and 0 == command.status_code)
@git_support
def get_new_command(command):
return 'git commit --amend'