Skip to content

Commit 21b3401

Browse files
committed
Merge branch 'jc/fetch-tags-doc' into maint
* jc/fetch-tags-doc: fetch --tags: clarify documentation
2 parents df54d59 + f0cb2f1 commit 21b3401

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Documentation/fetch-options.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,11 @@ endif::git-pull[]
5757
ifndef::git-pull[]
5858
-t::
5959
--tags::
60-
Most of the tags are fetched automatically as branch
61-
heads are downloaded, but tags that do not point at
62-
objects reachable from the branch heads that are being
63-
tracked will not be fetched by this mechanism. This
64-
flag lets all tags and their associated objects be
65-
downloaded. The default behavior for a remote may be
66-
specified with the remote.<name>.tagopt setting. See
67-
linkgit:git-config[1].
60+
This is a short-hand for giving "refs/tags/*:refs/tags/*"
61+
refspec from the command line, to ask all tags to be fetched
62+
and stored locally. Because this acts as an explicit
63+
refspec, the default refspecs (configured with the
64+
remote.$name.fetch variable) are overridden and not used.
6865

6966
--recurse-submodules[=yes|on-demand|no]::
7067
This option controls if and under what conditions new commits of

0 commit comments

Comments
 (0)