aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-10-18 13:33:32 +0200
committerJunio C Hamano <gitster@pobox.com>2010-10-19 14:15:30 -0700
commit9fbd8986bb475befb27e0597c2ce0a7ce015334c (patch)
tree02901eb2c9330e464d270ab132708ea91c1b2872
parent9373bdc402585963e58f57e75b6396dd08becc77 (diff)
downloadgit-9fbd8986bb475befb27e0597c2ce0a7ce015334c.tar.gz
git-9fbd8986bb475befb27e0597c2ce0a7ce015334c.tar.xz
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>
-rw-r--r--Documentation/git-show-ref.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt
index 4696af743..be0ec189a 100644
--- a/Documentation/git-show-ref.txt
+++ b/Documentation/git-show-ref.txt
@@ -84,7 +84,11 @@ OPTIONS
<pattern>...::
- Show references matching one or more patterns.
+ Show references matching one or more patterns. Patterns are matched from
+ the end of the full name, and only complete parts are matched, e.g.
+ 'master' matches 'refs/heads/master', 'refs/remotes/origin/master',
+ 'refs/tags/jedi/master' but not 'refs/heads/mymaster' nor
+ 'refs/remotes/master/jedi'.
OUTPUT
------