nvbn/thefuck

View on GitHub
thefuck/rules/git_commit_reset.py

Summary

Maintainability
A
40 mins
Test Coverage
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 reset HEAD~'