summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-17 02:31:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-17 20:59:34 (GMT)
commit83558a412afa21e5eef1d97705204b8fb2c7a6f2 (patch)
tree8ee6bb4dd338123ad2ae04ee961aca7a5e6343da /Documentation
parenta9d34933803198f89ad721ee17f138b046131090 (diff)
downloadgit-83558a412afa21e5eef1d97705204b8fb2c7a6f2.zip
git-83558a412afa21e5eef1d97705204b8fb2c7a6f2.tar.gz
git-83558a412afa21e5eef1d97705204b8fb2c7a6f2.tar.bz2
fetch doc: src side of refspec could be full SHA-1
Since a9d34933 ("Merge branch 'fm/fetch-raw-sha1'", 2015-06-01) we allow to fetch by an object name when the other side accepts such a request, but we never updated the documentation to match. Signed-off-by: Junio C Hamano <gitster@pobox.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pull-fetch-param.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt
index 1ebbf1d..c579793 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 <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.