]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pull doc: correct outdated description of an example
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Sun, 5 Apr 2020 15:50:19 +0000 (15:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Apr 2020 22:00:04 +0000 (15:00 -0700)
Since f269048754 (fetch: opportunistically update tracking refs,
2013-05-11), the underlying `git fetch` in `git pull <remote> <branch>`
updates the configured remote-tracking branch for <branch>.

However, an example in the 'Examples' section of the `git pull`
documentation still states that this is not the case.

Correct the description of this example.

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

index dfb901f8b8358ea309e6403079e3c87fb82fee6f..21e10905fa28f4cfd77f9b1ecfd2a17e5a8835ab 100644 (file)
@@ -229,9 +229,9 @@ branch.<name>.merge options; see linkgit:git-config[1] for details.
 $ git pull origin next
 ------------------------------------------------
 +
-This leaves a copy of `next` temporarily in FETCH_HEAD, but
-does not update any remote-tracking branches. Using remote-tracking
-branches, the same can be done by invoking fetch and merge:
+This leaves a copy of `next` temporarily in FETCH_HEAD, and
+updates the remote-tracking branch `origin/next`.
+The same can be done by invoking fetch and merge:
 +
 ------------------------------------------------
 $ git fetch origin