mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Fix typo in help docs for to-ref and from-ref
This commit is contained in:
parent
7858ad066f
commit
e58bcb51fc
1 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--from-ref', '--source', '-s',
|
'--from-ref', '--source', '-s',
|
||||||
help=(
|
help=(
|
||||||
'(for usage with `--from-ref`) -- this option represents the '
|
'(for usage with `--to-ref`) -- this option represents the '
|
||||||
'original 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 you are pushing '
|
'For `pre-push` hooks, this represents the branch you are pushing '
|
||||||
'to. '
|
'to. '
|
||||||
|
|
@ -117,7 +117,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
||||||
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 `--from-ref`) -- this option represents the '
|
||||||
'destination 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 being pushed. '
|
'For `pre-push` hooks, this represents the branch being pushed. '
|
||||||
'For `post-checkout` hooks, this represents the branch that is '
|
'For `post-checkout` hooks, this represents the branch that is '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue