Browse Source

Documentation: remove stray backslashes in rev-parse manual

Use the {asterisk} entity instead of \* or * to avoid both
stray backslashes in output and suppression of asterisks
misinterpreted as a bold-text delimiter.

Reported-by: Frédéric Brière <fbriere@fbriere.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Jonathan Nieder 15 years ago committed by Junio C Hamano
parent
commit
4cacbf677d
  1. 9
      Documentation/git-rev-parse.txt

9
Documentation/git-rev-parse.txt

@ -74,7 +74,7 @@ OPTIONS
properly quoted for consumption by shell. Useful when properly quoted for consumption by shell. Useful when
you expect your parameter to contain whitespaces and you expect your parameter to contain whitespaces and
newlines (e.g. when using pickaxe `-S` with newlines (e.g. when using pickaxe `-S` with
'git diff-\*'). In contrast to the `--sq-quote` option, 'git diff-{asterisk}'). In contrast to the `--sq-quote` option,
the command input is still interpreted as usual. the command input is still interpreted as usual.


--not:: --not::
@ -112,14 +112,15 @@ OPTIONS
+ +
If a `pattern` is given, only refs matching the given shell glob are If a `pattern` is given, only refs matching the given shell glob are
shown. If the pattern does not contain a globbing character (`?`, shown. If the pattern does not contain a globbing character (`?`,
`\*`, or `[`), it is turned into a prefix match by appending `/\*`. `{asterisk}`, or `[`), it is turned into a prefix match by
appending `/{asterisk}`.


--glob=pattern:: --glob=pattern::
Show all refs matching the shell glob pattern `pattern`. If Show all refs matching the shell glob pattern `pattern`. If
the pattern does not start with `refs/`, this is automatically the pattern does not start with `refs/`, this is automatically
prepended. If the pattern does not contain a globbing prepended. If the pattern does not contain a globbing
character (`?`, `\*`, or `[`), it is turned into a prefix character (`?`, `{asterisk}`, or `[`), it is turned into a prefix
match by appending `/\*`. match by appending `/{asterisk}`.


--show-toplevel:: --show-toplevel::
Show the absolute path of the top-level directory. Show the absolute path of the top-level directory.

Loading…
Cancel
Save