Skip to content

Commit 9fbd898

Browse files
Michael J Grubergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9373bdc commit 9fbd898

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/git-show-ref.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ OPTIONS
8484

8585
<pattern>...::
8686

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'.
8892

8993
OUTPUT
9094
------

0 commit comments

Comments
 (0)