summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-05-29 13:28:21 -0700
committerJunio C Hamano <gitster@pobox.com>2014-06-04 15:29:38 -0700
commitb8bdaa97a6447a1a1f9e635e6e2212858fdfe572 (patch)
treed6c6ebe82413be130c957c08c8dadd4a2a2aa108
parent5d59a32fa1b579f5dd8ef1449bd3f1945f235915 (diff)
downloadgit-b8bdaa97a6447a1a1f9e635e6e2212858fdfe572.tar.gz
fetch doc: update refspec format description
The text made it sound as if the leading plus is the only thing that is optional, and forgot that <lhs> is the same as <lhs>:, i.e. fetch it and do not store anywhere. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/pull-fetch-param.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt
index 9cb78d4f75..b5a356b8f6 100644
--- a/Documentation/pull-fetch-param.txt
+++ b/Documentation/pull-fetch-param.txt
@@ -15,6 +15,7 @@ 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.
+
The remote ref that matches <src>
is fetched, and if <dst> is not empty string, the local