Merge branch 'jc/fetch-refspec-doc-update' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2017 05:39:08 +0000 (14:39 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2017 05:39:08 +0000 (14:39 +0900)
"git fetch <there> <src>:<dst>" allows an object name on the <src>
side when the other side accepts such a request since Git v2.5, but
the documentation was left stale.

* jc/fetch-refspec-doc-update:
fetch doc: src side of refspec could be full SHA-1

Documentation/pull-fetch-param.txt
index 1ebbf1d738403204b77a6b18547de25e94ab28be..c579793af5b41a01fecda884c514ff78bf25672a 100644 (file)
@@ -23,9 +23,11 @@ ifdef::git-pull[]
 endif::git-pull[]
 +
 The format of a <refspec> parameter is an optional plus
-`+`, followed by the source ref <src>, followed
+`+`, followed by the source <src>, followed
 by a colon `:`, followed by the destination ref <dst>.
-The colon can be omitted when <dst> is empty.
+The colon can be omitted when <dst> is empty.  <src> is
+typically a ref, but it can also be a fully spelled hex object
+name.
 +
 `tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`;
 it requests fetching everything up to the given tag.