Merging upstream version 2.11.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e1036806b7
commit
b40b2e7e52
33 changed files with 586 additions and 19 deletions
|
@ -67,8 +67,8 @@ class AppendReplaceDefault(argparse.Action):
|
|||
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-commit', 'post-checkout',
|
||||
'pre-commit', 'pre-merge-commit', 'pre-push', 'prepare-commit-msg',
|
||||
'commit-msg', 'post-commit', 'post-checkout', 'post-merge',
|
||||
),
|
||||
action=AppendReplaceDefault,
|
||||
default=['pre-commit'],
|
||||
|
@ -136,6 +136,13 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
|||
'file from the index, flag=0).'
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
'--is-squash-merge',
|
||||
help=(
|
||||
'During a post-merge hook, indicates whether the merge was a '
|
||||
'squash merge'
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
def _adjust_args_and_chdir(args: argparse.Namespace) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue