From db4e4113ea33ece52c5988f9b9f7c0559c802602 Mon Sep 17 00:00:00 2001 From: Marc Branchaud Date: Wed, 11 Jun 2014 10:24:04 -0400 Subject: docs: Explain the purpose of fetch's and pull's parameter. Signed-off-by: Marc Branchaud Signed-off-by: Junio C Hamano --- Documentation/pull-fetch-param.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'Documentation/pull-fetch-param.txt') 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[] :: - The format of a parameter is an optional plus - `+`, followed by the source ref , followed - by a colon `:`, followed by the destination ref . - The colon can be omitted when is empty. + Specifies which refs to fetch and which local refs to update. + When no s appear on the command line, the refs to fetch + are read from `remote..fetch` variables instead +ifndef::git-pull[] + (see <> below). +endif::git-pull[] +ifdef::git-pull[] + (see linkgit:git-fetch[1]). +endif::git-pull[] ++ +The format of a parameter is an optional plus +`+`, followed by the source ref , followed +by a colon `:`, followed by the destination ref . +The colon can be omitted when is empty. + `tag ` means the same as `refs/tags/:refs/tags/`; it requests fetching everything up to the given tag. -- cgit v1.2.3