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>
Jonathan Nieder committed
Aug 20, 2010 at 05:23 UTC
f1005987e2c5295f57b19504baa86f1e8fc4a8c2
2 files changed
+3
-2
Documentation/asciidoc.conf
+1
@@ -16,6 +16,7 @@ plus=+
16
caret=^
17
startsb=[
18
endsb=]
19
+backslash=\
20
tilde=~
21
apostrophe='
22
backtick=`
Documentation/git-show-ref.txt
+2
-2
@@ -73,8 +73,8 @@ OPTIONS
73
--exclude-existing[=<pattern>]::
74
75
Make 'git show-ref' act as a filter that reads refs from stdin of the
76
- form "^(?:<anything>\s)?<refname>(?:\^\{\})?$" and performs the
77
- following actions on each:
76
+ form "^(?:<anything>\s)?<refname>(?:{backslash}{caret}\{\})?$"
77
+ and performs the following actions on each:
78
(1) strip "^{}" at the end of line if any;
79
(2) ignore if pattern is provided and does not head-match refname;
80
(3) warn if refname is not a well-formed refname and skip;