Skip to content

Commit 4ab90e7

Browse files
Thomas Rastgitster
authored andcommitted
fetch/pull doc: untangle meaning of bare <ref>
The documentation erroneously used the same wording for both fetch and pull, stating that something will be merged even in git-fetch(1). In addition, saying that "<ref> is equivalent to <ref>:" doesn't really help anyone who still needs to read manpages. Clarify what is actually going on. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 51f8c81 commit 4ab90e7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/pull-fetch-param.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ Some short-cut notations are also supported.
6868
+
6969
* `tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`;
7070
it requests fetching everything up to the given tag.
71-
* A parameter <ref> without a colon is equivalent to
72-
<ref>: when pulling/fetching, so it merges <ref> into the current
73-
branch without storing the remote branch anywhere locally
71+
ifndef::git-pull[]
72+
* A parameter <ref> without a colon fetches that ref into FETCH_HEAD,
73+
endif::git-pull[]
74+
ifdef::git-pull[]
75+
* A parameter <ref> without a colon merges <ref> into the current
76+
branch,
77+
endif::git-pull[]
78+
while not storing the branch anywhere locally.

0 commit comments

Comments
 (0)