summaryrefslogtreecommitdiffstats
path: root/git-pull.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-05 15:21:55 -0700
committerJunio C Hamano <gitster@pobox.com>2020-10-05 15:21:55 -0700
commitd12815176f71c07e3844623f2c9c1ffc75a44574 (patch)
tree412c3124c3211cddd1af508e09b250dfe5755e77 /git-pull.html
parent36ebb0e3ab4a7aa8b34196786a989cf6a523c648 (diff)
downloadgit-htmldocs-d12815176f71c07e3844623f2c9c1ffc75a44574.tar.gz
Autogenerated HTML docs for v2.29.0-rc0
Diffstat (limited to 'git-pull.html')
-rw-r--r--git-pull.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/git-pull.html b/git-pull.html
index 4754aaeed..91d07fba8 100644
--- a/git-pull.html
+++ b/git-pull.html
@@ -1502,6 +1502,20 @@ by a colon <code>:</code>, followed by the destination ref &lt;dst&gt;.
The colon can be omitted when &lt;dst&gt; is empty. &lt;src&gt; is
typically a ref, but it can also be a fully spelled hex object
name.</p></div>
+<div class="paragraph"><p>A &lt;refspec&gt; may contain a <code>*</code> in its &lt;src&gt; to indicate a simple pattern
+match. Such a refspec functions like a glob that matches any ref with the
+same prefix. A pattern &lt;refspec&gt; must have a <code>*</code> in both the &lt;src&gt; and
+&lt;dst&gt;. It will map refs to the destination by replacing the <code>*</code> with the
+contents matched from the source.</p></div>
+<div class="paragraph"><p>If a refspec is prefixed by <code>^</code>, it will be interpreted as a negative
+refspec. Rather than specifying which refs to fetch or which local refs to
+update, such a refspec will instead specify refs to exclude. A ref will be
+considered to match if it matches at least one positive refspec, and does
+not match any negative refspec. Negative refspecs can be useful to restrict
+the scope of a pattern refspec so that it will not include specific refs.
+Negative refspecs can themselves be pattern refspecs. However, they may only
+contain a &lt;src&gt; and do not specify a &lt;dst&gt;. Fully spelled out hex object
+names are also not supported.</p></div>
<div class="paragraph"><p><code>tag &lt;tag&gt;</code> means the same as <code>refs/tags/&lt;tag&gt;:refs/tags/&lt;tag&gt;</code>;
it requests fetching everything up to the given tag.</p></div>
<div class="paragraph"><p>The remote ref that matches &lt;src&gt;