Re: [PATCH v2 0/5] Introduce 'uploadpack.lazyFetchTrusted'
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Aug 14, 2026, 16:31 UTC
- Message-ID
- <CAP8UFD0Mr=6KkJShU+7hfWGZEyi--B=Y1aamPSXO7z97sbTBmQ@mail.gmail.com>
- In-Reply-To
- <xmqqy0e9rcd9.fsf@gitster.g>
On Thu, Aug 13, 2026 at 10:31 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 32 quoted lines
> > Christian Couder <christian.couder@gmail.com> writes: > > > Recently the "promisor-remote" capability was added to protocol v2, > > allowing servers and clients to agree on the promisor remotes they can > > safely use. > > I do not know what you did, but it seems that an attempt to futz > with the thread structure i.e., > > This version is also sent as a separate 'v2' iteration in reply to v1, > instead of being threaded onto the previous "Introduce a > 'fromAccepted' option to GIT_NO_LAZY_FETCH" series, and it now > contains a 'base-commit' trailer, so that 'b4' and other tools can > find the right base and the right patches. > > made the patches totally unusable. > > This [v2 0/5] has > > Message-ID: <20260813154748.2378747-1-christian.couder@gmail.com> > In-reply-to: <20260807135511.1818458-1-christian.couder@gmail.com> > > which is *correct*. It is a reply to [0/5] of the original thread. > However, [v2 1/5] says: > > Message-ID: <20260813154748.2378747-2-christian.couder@gmail.com> > In-reply-to: <20260807135511.1818458-1-christian.couder@gmail.com> > > which is quite wrong. [v2 1/5] should be a reply to the cover > letter of the v2 iteration. [v2 2/5], [v2 3/5], ... should also be > replies to the cover letter of the v2 iteration.
Yeah, sorry. I tried to pass `--in-reply-to` to `git format-patch` instead of `git send-email` but it looks like they don't behave the same. Maybe because I have no `format.thread` set, so `git format-patch` defaults to `--no-thread`, and in that case `--in-reply-to` applies to every mail, not just the cover letter. I should have checked more carefully and not tried to improve too many things at once in my setup.
> I have never seen either plain vanilla send-email or GitGitGadget > produce misthreaded series like this one. Do you have some custom > settings to send things out?
No, I just use `git format-patch` and `git send-email` without special configuration.
Show 20 quoted lines
> Here is _one_ way to create a thread of the right shape: > > 1. Develop this 5-patch series. > > 2. Run > > $ git format-patch -v2 --cover-letter -5 > > to grab 0000-cover-letter.patch to 0005-builtin-upload-...patch > files. You may also want to pass --range-diff option. > > 3. Edit 0000-cover-letter.patch to your satisfaction. Do not futz > with In-Reply-To or References or Message-Id yourself there; > the tool will do this part better than manual editing. > > 4. Run > > $ git send-email --no-chain-reply-to \ > --in-reply-to='<20260807135511.1818458-1-christian.couder@gmail.com>' \ > 000[0-5]-*.patch
Yeah, that's pretty much what I usually do. I don't use `--no-chain-reply-to` though, but I will.
Show 10 quoted lines
> This will make the initial message (which is the cover letter of > this iteration) a reply to the named message (which is the cover > letter of the v1 iteration), and then the remainder replies to > the initial message, which is what we want to see. > > There surely are other right ways to do so. As long as the end > result would look like > > * vN (1 < N) cover letter is a reply to v1 cover letter > * vN patch M (0 < M) is a reply to vN cover letter
Yeah I should have checked more carefully before sending. Thanks.
> things will flow more smoothly. > > HTH.