diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-05 15:21:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-05 15:21:55 -0700 |
commit | d12815176f71c07e3844623f2c9c1ffc75a44574 (patch) | |
tree | 412c3124c3211cddd1af508e09b250dfe5755e77 /git-pull.html | |
parent | 36ebb0e3ab4a7aa8b34196786a989cf6a523c648 (diff) | |
download | git-htmldocs-d12815176f71c07e3844623f2c9c1ffc75a44574.tar.gz |
Autogenerated HTML docs for v2.29.0-rc0
Diffstat (limited to 'git-pull.html')
-rw-r--r-- | git-pull.html | 14 |
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 <dst>. The colon can be omitted when <dst> is empty. <src> is
typically a ref, but it can also be a fully spelled hex object
name.</p></div>
+<div class="paragraph"><p>A <refspec> may contain a <code>*</code> in its <src> to indicate a simple pattern
+match. Such a refspec functions like a glob that matches any ref with the
+same prefix. A pattern <refspec> must have a <code>*</code> in both the <src> and
+<dst>. 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 <src> and do not specify a <dst>. Fully spelled out hex object
+names are also not supported.</p></div>
<div class="paragraph"><p><code>tag <tag></code> means the same as <code>refs/tags/<tag>:refs/tags/<tag></code>;
it requests fetching everything up to the given tag.</p></div>
<div class="paragraph"><p>The remote ref that matches <src>
|