@matheusbsbs / matheus-bagliano / commits / 4cacbf677d
Fork 0

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>

Jonathan Nieder committed Aug 20, 2010 at 05:35 UTC 4cacbf677d4747e02586ca6f12d16cf8b5dc34e8
1 file changed +5 -4
Documentation/git-rev-parse.txt
+5 -4
@@ -74,7 +74,7 @@ OPTIONS
74 properly quoted for consumption by shell. Useful when
75 you expect your parameter to contain whitespaces and
76 newlines (e.g. when using pickaxe `-S` with
77 - 'git diff-\*'). In contrast to the `--sq-quote` option,
77 + 'git diff-{asterisk}'). In contrast to the `--sq-quote` option,
78 the command input is still interpreted as usual.
79
80 --not::
@@ -112,14 +112,15 @@ OPTIONS
112 +
113 If a `pattern` is given, only refs matching the given shell glob are
114 shown. If the pattern does not contain a globbing character (`?`,
115 -`\*`, or `[`), it is turned into a prefix match by appending `/\*`.
115 +`{asterisk}`, or `[`), it is turned into a prefix match by
116 +appending `/{asterisk}`.
117
118 --glob=pattern::
119 Show all refs matching the shell glob pattern `pattern`. If
120 the pattern does not start with `refs/`, this is automatically
121 prepended. If the pattern does not contain a globbing
121 - character (`?`, `\*`, or `[`), it is turned into a prefix
122 - match by appending `/\*`.
122 + character (`?`, `{asterisk}`, or `[`), it is turned into a prefix
123 + match by appending `/{asterisk}`.
124
125 --show-toplevel::
126 Show the absolute path of the top-level directory.