From: Thomas Rast Date: Sat, 11 May 2013 16:14:25 +0000 (+0200) Subject: fetch/pull doc: untangle meaning of bare X-Git-Tag: v1.8.4-rc0~229^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4ab90e7a5c46ce929ae8b3b7bbb5b276f2f60e0d?hp=--cc fetch/pull doc: untangle meaning of bare 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 " is equivalent to :" doesn't really help anyone who still needs to read manpages. Clarify what is actually going on. Signed-off-by: Thomas Rast Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- 4ab90e7a5c46ce929ae8b3b7bbb5b276f2f60e0d diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt index 94a9d32f1d..6f5ca21748 100644 --- a/Documentation/pull-fetch-param.txt +++ b/Documentation/pull-fetch-param.txt @@ -68,6 +68,11 @@ Some short-cut notations are also supported. + * `tag ` means the same as `refs/tags/:refs/tags/`; it requests fetching everything up to the given tag. -* A parameter without a colon is equivalent to - : when pulling/fetching, so it merges into the current - branch without storing the remote branch anywhere locally +ifndef::git-pull[] +* A parameter without a colon fetches that ref into FETCH_HEAD, +endif::git-pull[] +ifdef::git-pull[] +* A parameter without a colon merges into the current + branch, +endif::git-pull[] + while not storing the branch anywhere locally.