]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fetch, pull doc: correct description of '--set-upstream'
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Wed, 12 Aug 2020 23:52:00 +0000 (23:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Aug 2020 18:20:25 +0000 (11:20 -0700)
The '--set-upstream' option to `git fetch` (which is also accepted by
`git pull` and passed through to the underlying `git fetch`) allows
setting the upstream configuration for the current branch. This was
added in 24bc1a1292 (pull, fetch: add --set-upstream option,
2019-08-19).

However, the documentation for that option describes its action as 'If
the remote is fetched successfully, pull and add upstream (tracking)
reference [...]', which is wrong because this option does not cause
neither `git fetch` nor `git pull` to pull: `git fetch` does not pull
and `git pull` always pulls.

Fix the description of that option.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/fetch-options.txt

index 6e2a160a47cb8c07a72600d2fc7ad404bf2bc1c1..ff706256947966062597bde20afe6f131dce568e 100644 (file)
@@ -186,7 +186,7 @@ ifndef::git-pull[]
 endif::git-pull[]
 
 --set-upstream::
-       If the remote is fetched successfully, pull and add upstream
+       If the remote is fetched successfully, add upstream
        (tracking) reference, used by argument-less
        linkgit:git-pull[1] and other commands. For more information,
        see `branch.<name>.merge` and `branch.<name>.remote` in