mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add pre-rebase hook support
This commit is contained in:
parent
f2661bfc31
commit
f39154f69f
9 changed files with 114 additions and 0 deletions
|
|
@ -107,6 +107,17 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
|||
'now checked out.'
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
'--pre-rebase-upstream', help=(
|
||||
'The upstream from which the series was forked.'
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
'--pre-rebase-branch', help=(
|
||||
'The branch being rebased, and is not set when '
|
||||
'rebasing the current branch.'
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
'--commit-msg-filename',
|
||||
help='Filename to check when running during `commit-msg`',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue