Documentation: unbreak regex in show-ref manual
I am not sure why, but the regular expression "(?:\^\{\})" gets rendered by asciidoc as "(?:\{})". The intent seems to be a regex matching the literal string "^{}", so this rewrites the markup to produce "(?:\^{})" as output. Cc: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
438ded457b
commit
f1005987e2
@ -16,6 +16,7 @@ plus=+
|
|||||||
caret=^
|
caret=^
|
||||||
startsb=[
|
startsb=[
|
||||||
endsb=]
|
endsb=]
|
||||||
|
backslash=\
|
||||||
tilde=~
|
tilde=~
|
||||||
apostrophe='
|
apostrophe='
|
||||||
backtick=`
|
backtick=`
|
||||||
|
@ -73,8 +73,8 @@ OPTIONS
|
|||||||
--exclude-existing[=<pattern>]::
|
--exclude-existing[=<pattern>]::
|
||||||
|
|
||||||
Make 'git show-ref' act as a filter that reads refs from stdin of the
|
Make 'git show-ref' act as a filter that reads refs from stdin of the
|
||||||
form "^(?:<anything>\s)?<refname>(?:\^\{\})?$" and performs the
|
form "^(?:<anything>\s)?<refname>(?:{backslash}{caret}\{\})?$"
|
||||||
following actions on each:
|
and performs the following actions on each:
|
||||||
(1) strip "^{}" at the end of line if any;
|
(1) strip "^{}" at the end of line if any;
|
||||||
(2) ignore if pattern is provided and does not head-match refname;
|
(2) ignore if pattern is provided and does not head-match refname;
|
||||||
(3) warn if refname is not a well-formed refname and skip;
|
(3) warn if refname is not a well-formed refname and skip;
|
||||||
|
Loading…
Reference in New Issue
Block a user