@matheusbsbs / matheus-bagliano / commits / a44088435c
Fork 0

pull doc: correct outdated description of an example

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>

Philippe Blain committed Apr 5, 2020 at 15:50 UTC a44088435c37ccf91920ab18076db888cff1fc76
1 file changed +3 -3
Documentation/git-pull.txt
+3 -3
@@ -229,9 +229,9 @@ branch.<name>.merge options; see linkgit:git-config[1] for details.
229 $ git pull origin next
230 ------------------------------------------------
231 +
232 -This leaves a copy of `next` temporarily in FETCH_HEAD, but
233 -does not update any remote-tracking branches. Using remote-tracking
234 -branches, the same can be done by invoking fetch and merge:
232 +This leaves a copy of `next` temporarily in FETCH_HEAD, and
233 +updates the remote-tracking branch `origin/next`.
234 +The same can be done by invoking fetch and merge:
235 +
236 ------------------------------------------------
237 $ git fetch origin