Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0e536b

Browse files
authored
Merge pull request #2266 from leetrout/patch-1
Fix typo in help docs for to-ref and from-ref
2 parents 7858ad0 + e58bcb5 commit e0e536b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
106106
parser.add_argument(
107107
'--from-ref', '--source', '-s',
108108
help=(
109-
'(for usage with `--from-ref`) -- this option represents the '
109+
'(for usage with `--to-ref`) -- this option represents the '
110110
'original ref in a `from_ref...to_ref` diff expression. '
111111
'For `pre-push` hooks, this represents the branch you are pushing '
112112
'to. '
@@ -117,7 +117,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
117117
parser.add_argument(
118118
'--to-ref', '--origin', '-o',
119119
help=(
120-
'(for usage with `--to-ref`) -- this option represents the '
120+
'(for usage with `--from-ref`) -- this option represents the '
121121
'destination ref in a `from_ref...to_ref` diff expression. '
122122
'For `pre-push` hooks, this represents the branch being pushed. '
123123
'For `post-checkout` hooks, this represents the branch that is '

0 commit comments

Comments
 (0)