From: Chris Torek Date: Wed, 24 Sep 2025 22:38:51 GMT Subject: Re: [PATCH 2/4] doc: git-pull: clarify options for integrating remote branch Message-ID: In-Reply-To: On Wed, Sep 24, 2025 at 1:23 PM D. Ben Knoble wrote: > > +First, `git pull` runs `git fetch` with the same arguments to fetch > > Hm. Is it worth saying "similar" rather than "same" since we don't > pass e.g. `--rebase` to `git fetch`? Or is that detail unimportant in > this context? I would suggest "equivalent" or (perhaps better) "appropriate". Perhaps even: First, `git pull` runs the equivalent of `git fetch` with the arguments needed to fetch necessary branches from the remote ... Definition of these arguments can be deferred (perhaps even indefinitely); but: > > +remote branch(es). Then it integrates the remote branch into the current > > +branch. > > Plural-singular here leaves me wondering how Git decides which of > multiple fetched branches to integrate. here we'd need something along the lines of: Then it integrates the appropriate remote branch ... and here we *do* have to define "appropriate". (Historically the merge step grabbed stuff from FETCH_HEAD, excluding all the "not-for-merge" parts, and I have never dug into what happens now...) Chris