mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix help description for --from-ref and --to-ref
This commit is contained in:
parent
74c582fb04
commit
1e0db9c2c8
1 changed files with 9 additions and 9 deletions
|
|
@ -111,21 +111,21 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
||||||
'--from-ref', '--source', '-s',
|
'--from-ref', '--source', '-s',
|
||||||
help=(
|
help=(
|
||||||
'(for usage with `--from-ref`) -- this option represents the '
|
'(for usage with `--from-ref`) -- this option represents the '
|
||||||
'destination ref in a `from_ref...to_ref` diff expression. '
|
'original ref in a `from_ref...to_ref` diff expression. '
|
||||||
'For `pre-push` hooks, this represents the branch being pushed. '
|
'For `pre-push` hooks, this represents the branch you are pushing '
|
||||||
'For `post-checkout` hooks, this represents the branch that is '
|
'to. '
|
||||||
'now checked out.'
|
'For `post-checkout` hooks, this represents the branch that was '
|
||||||
|
'previously checked out.'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--to-ref', '--origin', '-o',
|
'--to-ref', '--origin', '-o',
|
||||||
help=(
|
help=(
|
||||||
'(for usage with `--to-ref`) -- this option represents the '
|
'(for usage with `--to-ref`) -- this option represents the '
|
||||||
'original ref in a `from_ref...to_ref` diff expression. '
|
'destination ref in a `from_ref...to_ref` diff expression. '
|
||||||
'For `pre-push` hooks, this represents the branch you are pushing '
|
'For `pre-push` hooks, this represents the branch being pushed. '
|
||||||
'to. '
|
'For `post-checkout` hooks, this represents the branch that is '
|
||||||
'For `post-checkout` hooks, this represents the branch which was '
|
'now checked out.'
|
||||||
'previously checked out.'
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue