aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/pull-fetch-param.txt
diff options
context:
space:
mode:
authorMarc Branchaud <marcnarc@xiplink.com>2014-06-11 10:24:04 -0400
committerJunio C Hamano <gitster@pobox.com>2014-06-12 09:59:13 -0700
commitdb4e4113ea33ece52c5988f9b9f7c0559c802602 (patch)
treed1c911c6d63c7183750071595a793874f28e949b /Documentation/pull-fetch-param.txt
parentc5558f80c3a34f411022f1bc67f8364556ca3922 (diff)
downloadgit-db4e4113ea33ece52c5988f9b9f7c0559c802602.tar.gz
docs: Explain the purpose of fetch's and pull's <refspec> parameter.
Signed-off-by: Marc Branchaud <marcnarc@xiplink.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pull-fetch-param.txt')
-rw-r--r--Documentation/pull-fetch-param.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt
index 4bff65b0e9..1ebbf1d738 100644
--- a/Documentation/pull-fetch-param.txt
+++ b/Documentation/pull-fetch-param.txt
@@ -12,10 +12,20 @@ ifndef::git-pull[]
endif::git-pull[]
<refspec>::
- The format of a <refspec> parameter is an optional plus
- `+`, followed by the source ref <src>, followed
- by a colon `:`, followed by the destination ref <dst>.
- The colon can be omitted when <dst> is empty.
+ Specifies which refs to fetch and which local refs to update.
+ When no <refspec>s appear on the command line, the refs to fetch
+ are read from `remote.<repository>.fetch` variables instead
+ifndef::git-pull[]
+ (see <<CRTB,CONFIGURED REMOTE-TRACKING BRANCHES>> below).
+endif::git-pull[]
+ifdef::git-pull[]
+ (see linkgit:git-fetch[1]).
+endif::git-pull[]
++
+The format of a <refspec> parameter is an optional plus
+`+`, followed by the source ref <src>, followed
+by a colon `:`, followed by the destination ref <dst>.
+The colon can be omitted when <dst> is empty.
+
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`;
it requests fetching everything up to the given tag.