From: Kristoffer Haugsbakk Date: Tue, 25 Aug 2026 18:36:50 GMT Subject: Re: [PATCH 3/3] format-patch: learn --[no-]range-diff-notes Message-ID: <16315616-097a-4fe2-8665-010e424afd8b@app.fastmail.com> In-Reply-To: On Tue, Aug 25, 2026, at 00:31, Junio C Hamano wrote: > [snip] >> +Now the range diff is back to displaying the same notes as the patches. >> + > > Hmph, this is a bit too complex for me. When I say > > $ git format-patch --no-notes --range-diff-notes ... > > I would expect that individual patches would not get notes, but the > range-diff will include them in the comparison. But if > --range-diff-notes just falls back to default (i.e., inherit what > patches use), would I see the notes used in the range-diff? You will not get patch notes and not get range diff notes. That --range-diff-notes told it to use the patch notes which you just turned off/emptied the list. Code-wise, the list of notes is cleared so you you would have to change the --notes implementation if you want to keep a sort of shadow list of not-patch-notes-but-RD-notes. And another problem, or fact, is that format-patch does not show notes by default. So what should --RD-notes show? The default notes? Thanks sent from mobile