summaryrefslogtreecommitdiff
path: root/Documentation/fetch-options.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-12-14 00:19:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-14 00:19:45 (GMT)
commitf0cb2f137c6e399bab1be92c7cc8e3e08bd36c4f (patch)
treea84fd94873f76f2cb4db4d2cf62a3e956e52b984 /Documentation/fetch-options.txt
parentbdd478d620034dc6517aea940f5dc6b88f780c04 (diff)
downloadgit-f0cb2f137c6e399bab1be92c7cc8e3e08bd36c4f.zip
git-f0cb2f137c6e399bab1be92c7cc8e3e08bd36c4f.tar.gz
git-f0cb2f137c6e399bab1be92c7cc8e3e08bd36c4f.tar.bz2
fetch --tags: clarify documentation
Explain that --tags is just like another explicit refspec on the command line and as such overrides the default refspecs configured via the remote.$name.fetch variable. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fetch-options.txt')
-rw-r--r--Documentation/fetch-options.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index b4d6476..6e98bdf 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -57,14 +57,11 @@ endif::git-pull[]
ifndef::git-pull[]
-t::
--tags::
- Most of the tags are fetched automatically as branch
- heads are downloaded, but tags that do not point at
- objects reachable from the branch heads that are being
- tracked will not be fetched by this mechanism. This
- flag lets all tags and their associated objects be
- downloaded. The default behavior for a remote may be
- specified with the remote.<name>.tagopt setting. See
- linkgit:git-config[1].
+ This is a short-hand for giving "refs/tags/*:refs/tags/*"
+ refspec from the command line, to ask all tags to be fetched
+ and stored locally. Because this acts as an explicit
+ refspec, the default refspecs (configured with the
+ remote.$name.fetch variable) are overridden and not used.
--recurse-submodules[=yes|on-demand|no]::
This option controls if and under what conditions new commits of