add support for post-commit

This commit is contained in:
ModischFabrications
2020-04-25 01:21:12 +02:00
committed by Anthony Sottile
parent 3b3b33ea29
commit 26adf1d560
7 changed files with 42 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ def _add_hook_type_option(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
'-t', '--hook-type', choices=(
'pre-commit', 'pre-merge-commit', 'pre-push',
'prepare-commit-msg', 'commit-msg', 'post-checkout',
'prepare-commit-msg', 'commit-msg', 'post-commit', 'post-checkout',
),
action=AppendReplaceDefault,
default=['pre-commit'],