summaryrefslogtreecommitdiffstats
path: root/git-ls-remote.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-22 15:31:59 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-22 15:31:59 -0800
commit3583c5c3e0e0265a7a2e48b2be5e756b53c42dca (patch)
treef3977c9d683e9e2a5f0cb2b82e0d467c61572a8d /git-ls-remote.html
parent179b64fec440c912e5e180bd4caf902800516f21 (diff)
downloadgit-htmldocs-3583c5c3e0e0265a7a2e48b2be5e756b53c42dca.tar.gz
Autogenerated HTML docs for v2.39.2-542-g06dd2
Diffstat (limited to 'git-ls-remote.html')
-rw-r--r--git-ls-remote.html21
1 files changed, 14 insertions, 7 deletions
diff --git a/git-ls-remote.html b/git-ls-remote.html
index 028cbc00f..1502a7ca2 100644
--- a/git-ls-remote.html
+++ b/git-ls-remote.html
@@ -751,7 +751,7 @@ git-ls-remote(1) Manual Page
<div class="verseblock">
<pre class="content"><em>git ls-remote</em> [--heads] [--tags] [--refs] [--upload-pack=&lt;exec&gt;]
[-q | --quiet] [--exit-code] [--get-url] [--sort=&lt;key&gt;]
- [--symref] [&lt;repository&gt; [&lt;refs&gt;&#8230;]]</pre>
+ [--symref] [&lt;repository&gt; [&lt;patterns&gt;&#8230;]]</pre>
<div class="attribution">
</div></div>
</div>
@@ -892,14 +892,19 @@ commit IDs.</p></div>
</p>
</dd>
<dt class="hdlist1">
-&lt;refs&gt;&#8230;
+&lt;patterns&gt;&#8230;
</dt>
<dd>
<p>
When unspecified, all references, after filtering done
- with --heads and --tags, are shown. When &lt;refs&gt;&#8230; are
- specified, only references matching the given patterns
- are displayed.
+ with --heads and --tags, are shown. When &lt;patterns&gt;&#8230; are
+ specified, only references matching one or more of the given
+ patterns are displayed. Each pattern is interpreted as a glob
+ (see <code>glob</code> in <a href="gitglossary.html">gitglossary(7)</a>) which is matched against
+ the "tail" of a ref, starting either from the start of the ref
+ (so a full name like <code>refs/heads/foo</code> matches) or from a slash
+ separator (so <code>bar</code> matches <code>refs/heads/bar</code> but not
+ <code>refs/heads/foobar</code>).
</p>
</dd>
</dl></div>
@@ -910,15 +915,17 @@ commit IDs.</p></div>
<div class="sectionbody">
<div class="listingblock">
<div class="content">
-<pre><code>$ git ls-remote --tags ./.
+<pre><code>$ git ls-remote --tags .
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
+
$ git ls-remote http://www.kernel.org/pub/scm/git/git.git master seen rc
5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/seen
+
$ git remote add korg http://www.kernel.org/pub/scm/git/git.git
$ git ls-remote --tags korg v\*
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
@@ -945,7 +952,7 @@ c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
<div id="footer">
<div id="footer-text">
Last updated
- 2020-07-09 15:39:10 PDT
+ 2023-02-22 15:29:29 PST
</div>
</div>
</body>