X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-show-ref.txt;h=be0ec189af45e1006134e5607bb76a7b6ad20699;hb=8c0db6fd51cec5fd82cf4054818c0a1ca4a58f37;hp=75780d7d63894e220bf938da0b4f5dca40d6301d;hpb=2850c1a882ff78e181d0e44b54b595e6b272a02b;p=git.git diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt index 75780d7d6..be0ec189a 100644 --- a/Documentation/git-show-ref.txt +++ b/Documentation/git-show-ref.txt @@ -73,8 +73,8 @@ OPTIONS --exclude-existing[=]:: Make 'git show-ref' act as a filter that reads refs from stdin of the - form "^(?:\s)?(?:\^\{\})?$" and performs the - following actions on each: + form "^(?:\s)?(?:{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; @@ -84,7 +84,11 @@ OPTIONS ...:: - 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 ------