git-show-ref.txt: clarify the pattern matching
git-show-ref really does not do what one would expect under the name pattern matching, so describe it. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Oct 18, 2010 at 13:33 UTC
9fbd8986bb475befb27e0597c2ce0a7ce015334c
1 file changed
+5
-1
Documentation/git-show-ref.txt
+5
-1
@@ -84,7 +84,11 @@ OPTIONS
84
85
<pattern>...::
86
87
- Show references matching one or more patterns.
87
+ Show references matching one or more patterns. Patterns are matched from
88
+ the end of the full name, and only complete parts are matched, e.g.
89
+ 'master' matches 'refs/heads/master', 'refs/remotes/origin/master',
90
+ 'refs/tags/jedi/master' but not 'refs/heads/mymaster' nor
91
+ 'refs/remotes/master/jedi'.
92
93
OUTPUT
94
------