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

Skip to content

Commit 1e0db9c

Browse files
committed
Fix help description for --from-ref and --to-ref
1 parent 74c582f commit 1e0db9c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

pre_commit/main.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
111111
'--from-ref', '--source', '-s',
112112
help=(
113113
'(for usage with `--from-ref`) -- this option represents the '
114-
'destination ref in a `from_ref...to_ref` diff expression. '
115-
'For `pre-push` hooks, this represents the branch being pushed. '
116-
'For `post-checkout` hooks, this represents the branch that is '
117-
'now checked out.'
114+
'original ref in a `from_ref...to_ref` diff expression. '
115+
'For `pre-push` hooks, this represents the branch you are pushing '
116+
'to. '
117+
'For `post-checkout` hooks, this represents the branch that was '
118+
'previously checked out.'
118119
),
119120
)
120121
parser.add_argument(
121122
'--to-ref', '--origin', '-o',
122123
help=(
123124
'(for usage with `--to-ref`) -- this option represents the '
124-
'original ref in a `from_ref...to_ref` diff expression. '
125-
'For `pre-push` hooks, this represents the branch you are pushing '
126-
'to. '
127-
'For `post-checkout` hooks, this represents the branch which was '
128-
'previously checked out.'
125+
'destination ref in a `from_ref...to_ref` diff expression. '
126+
'For `pre-push` hooks, this represents the branch being pushed. '
127+
'For `post-checkout` hooks, this represents the branch that is '
128+
'now checked out.'
129129
),
130130
)
131131
parser.add_argument(

0 commit comments

Comments
 (0)