Skip to content

Commit b8bdaa9

Browse files
committed
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 <[email protected]>
1 parent 5d59a32 commit b8bdaa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/pull-fetch-param.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ endif::git-pull[]
1515
The format of a <refspec> parameter is an optional plus
1616
`+`, followed by the source ref <src>, followed
1717
by a colon `:`, followed by the destination ref <dst>.
18+
The colon can be omitted when <dst> is empty.
1819
+
1920
The remote ref that matches <src>
2021
is fetched, and if <dst> is not empty string, the local

0 commit comments

Comments
 (0)