Re: [RFC PATCH] builtin/format-patch: print a warning for skipped merge commits?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 31, 2025, 05:12 UTC
- Message-ID
- <xmqqo6nfdyl4.fsf@gitster.g>
- In-Reply-To
- <20251231034217.2498648-1-asmadeus@codewreck.org>
Dominique Martinet <asmadeus@codewreck.org> writes:
> This RFC patch illustrates how we could easily print a warning, but > perhaps the warning would only make sense if no other commit has been > formatted?
Yeah, when nothing is shown but the given range is not empty, it would not be too annoying to give an advice message.
On the other hand, I do not think it is a good idea to say anything extra when the user gave a range "trunk..mytopic" that has repeated back-merges from trunk into mytopic, to format what s/he worked on the mytopic branch. They _expect_ these back-merges to be ignored, and it would be purely an unwanted noise.
Thanks.