@@ -11,7 +11,7 @@ SYNOPSIS
11
11
[verse]
12
12
'git ls-remote' [--heads] [--tags] [--refs] [--upload-pack=<exec>]
13
13
[-q | --quiet] [--exit-code] [--get-url] [--sort=<key>]
14
- [--symref] [<repository> [<refs >...]]
14
+ [--symref] [<repository> [<patterns >...]]
15
15
16
16
DESCRIPTION
17
17
-----------
@@ -85,25 +85,32 @@ OPTIONS
85
85
either a URL or the name of a remote (see the GIT URLS and
86
86
REMOTES sections of linkgit:git-fetch[1]).
87
87
88
- <refs >...::
88
+ <patterns >...::
89
89
When unspecified, all references, after filtering done
90
- with --heads and --tags, are shown. When <refs>... are
91
- specified, only references matching the given patterns
92
- are displayed.
90
+ with --heads and --tags, are shown. When <patterns>... are
91
+ specified, only references matching one or more of the given
92
+ patterns are displayed. Each pattern is interpreted as a glob
93
+ (see `glob` in linkgit:gitglossary[7]) which is matched against
94
+ the "tail" of a ref, starting either from the start of the ref
95
+ (so a full name like `refs/heads/foo` matches) or from a slash
96
+ separator (so `bar` matches `refs/heads/bar` but not
97
+ `refs/heads/foobar`).
93
98
94
99
EXAMPLES
95
100
--------
96
101
97
102
----
98
- $ git ls-remote --tags ./.
103
+ $ git ls-remote --tags .
99
104
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
100
105
f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
101
106
7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
102
107
c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
103
108
0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
109
+
104
110
$ git ls-remote http://www.kernel.org/pub/scm/git/git.git master seen rc
105
111
5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
106
112
c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/seen
113
+
107
114
$ git remote add korg http://www.kernel.org/pub/scm/git/git.git
108
115
$ git ls-remote --tags korg v\*
109
116
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
0 commit comments