diff options
author | Marc Branchaud <marcnarc@xiplink.com> | 2014-06-11 16:24:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-12 18:59:13 +0200 |
commit | db4e4113ea33ece52c5988f9b9f7c0559c802602 (patch) | |
tree | d1c911c6d63c7183750071595a793874f28e949b /Documentation/pull-fetch-param.txt | |
parent | fetch: allow explicit --refmap to override configuration (diff) | |
download | git-db4e4113ea33ece52c5988f9b9f7c0559c802602.tar.xz git-db4e4113ea33ece52c5988f9b9f7c0559c802602.zip |
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.txt | 18 |
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. |