mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
support pre-merge-commit
This commit is contained in:
parent
bf68512e7d
commit
c699e255a1
6 changed files with 39 additions and 6 deletions
|
|
@ -70,7 +70,8 @@ class AppendReplaceDefault(argparse.Action):
|
|||
def _add_hook_type_option(parser):
|
||||
parser.add_argument(
|
||||
'-t', '--hook-type', choices=(
|
||||
'pre-commit', 'pre-push', 'prepare-commit-msg', 'commit-msg',
|
||||
'pre-commit', 'pre-merge-commit', 'pre-push',
|
||||
'prepare-commit-msg', 'commit-msg',
|
||||
),
|
||||
action=AppendReplaceDefault,
|
||||
default=['pre-commit'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue