From: Junio C Hamano Date: Thu, 19 Oct 2017 05:45:44 +0000 (+0900) Subject: Merge branch 'jc/fetch-refspec-doc-update' X-Git-Tag: v2.15.0-rc2~3 X-Git-Url: https://www.git.lorimer.id.au/gitweb.git/diff_plain/39a2aeacc5c606b6b9a4c5b8397b02c35c38ae5f?hp=9f8468be43df74665bfd9fd925d8ab6fc74f963f Merge branch 'jc/fetch-refspec-doc-update' "git fetch :" allows an object name on the 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 --- diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt index 1ebbf1d738..c579793af5 100644 --- a/Documentation/pull-fetch-param.txt +++ b/Documentation/pull-fetch-param.txt @@ -23,9 +23,11 @@ ifdef::git-pull[] endif::git-pull[] + The format of a parameter is an optional plus -`+`, followed by the source ref , followed +`+`, followed by the source , followed by a colon `:`, followed by the destination ref . -The colon can be omitted when is empty. +The colon can be omitted when is empty. is +typically a ref, but it can also be a fully spelled hex object +name. + `tag ` means the same as `refs/tags/:refs/tags/`; it requests fetching everything up to the given tag.