path: root/Documentation/git-show-ref.txt
diff options
authorJonathan Nieder <>2010-08-20 10:23:54 (GMT)
committerJunio C Hamano <>2010-08-20 21:16:21 (GMT)
commitf1005987e2c5295f57b19504baa86f1e8fc4a8c2 (patch)
treec9693cace06e530d080da988f310e6758fbba8a5 /Documentation/git-show-ref.txt
parent438ded457b6e0d1e615edd593faeeafdc8818fea (diff)
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 <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-show-ref.txt')
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt
index 75780d7..4696af7 100644
--- a/Documentation/git-show-ref.txt
+++ b/Documentation/git-show-ref.txt
@@ -73,8 +73,8 @@ OPTIONS
Make 'git show-ref' act as a filter that reads refs from stdin of the
- form "^(?:<anything>\s)?<refname>(?:\^\{\})?$" and performs the
- following actions on each:
+ form "^(?:<anything>\s)?<refname>(?:{backslash}{caret}\{\})?$"
+ and performs the following actions on each:
(1) strip "^{}" at the end of line if any;
(2) ignore if pattern is provided and does not head-match refname;
(3) warn if refname is not a well-formed refname and skip;