mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-16 05:09:53 -06:00
add support for post-commit
This commit is contained in:
committed by
Anthony Sottile
parent
3b3b33ea29
commit
26adf1d560
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user