mirror of
https://github.com/git/git.git
synced 2024-10-22 14:48:15 +02:00
fetch doc: update refspec format description
The text made it sound as if the leading plus is the only thing that is optional, and forgot that <lhs> is the same as <lhs>:, i.e. fetch it and do not store anywhere. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
5d59a32fa1
commit
b8bdaa97a6
@ -15,6 +15,7 @@ endif::git-pull[]
|
|||||||
The format of a <refspec> parameter is an optional plus
|
The format of a <refspec> parameter is an optional plus
|
||||||
`+`, followed by the source ref <src>, followed
|
`+`, followed by the source ref <src>, followed
|
||||||
by a colon `:`, followed by the destination ref <dst>.
|
by a colon `:`, followed by the destination ref <dst>.
|
||||||
|
The colon can be omitted when <dst> is empty.
|
||||||
+
|
+
|
||||||
The remote ref that matches <src>
|
The remote ref that matches <src>
|
||||||
is fetched, and if <dst> is not empty string, the local
|
is fetched, and if <dst> is not empty string, the local
|
||||||
|
Loading…
Reference in New Issue
Block a user