From: Junio C Hamano Date: Mon, 23 Oct 2017 05:39:08 +0000 (+0900) Subject: Merge branch 'jc/fetch-refspec-doc-update' into maint X-Git-Tag: v2.14.3~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9fc7bc656858ef1b2d8f18856af59e23cda489d8?hp=96c6bb566ee5354a1b07530a94d3f85055e46032 Merge branch 'jc/fetch-refspec-doc-update' into maint "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.