Skip to content

Commit 223636c

Browse files
committed
Merge branch 'jc/fetch-refspec-doc-update' into pu
"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
2 parents 8d8dead + f62ecee commit 223636c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/pull-fetch-param.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ ifdef::git-pull[]
2323
endif::git-pull[]
2424
+
2525
The format of a <refspec> parameter is an optional plus
26-
`+`, followed by the source ref <src>, followed
26+
`+`, followed by the source <src>, followed
2727
by a colon `:`, followed by the destination ref <dst>.
28-
The colon can be omitted when <dst> is empty.
28+
The colon can be omitted when <dst> is empty. <src> is most
29+
typically a ref, but it can also be an fully spelled hex object
30+
name.
2931
+
3032
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`;
3133
it requests fetching everything up to the given tag.

0 commit comments

Comments
 (0)