From: Jeff King Date: Tue, 10 Feb 2026 06:46:08 GMT Subject: Re: [PATCH 0/3] commit-msg.sample: reject messages that would confuse "git am" Message-ID: <20260210064608.GB1756549@coredump.intra.peff.net> In-Reply-To: On Mon, Feb 09, 2026 at 10:43:23AM +0000, Phillip Wood wrote: > > 2. I'd guess that these days only a small minority of people care > > about sending patches by email. So for most people, a warning about > > their commit message containing a diff or "---" will be mostly > > useless, if not outright confusing. > > People do download patches from github and apply them even if they're not > using a email based workflow. I'm not entirely clear but I think that's what > happened in the post Matthias linked to. Though if they're using "patch" > rather than "git am" to apply them indenting the diff wont help. Yeah, true. I have done that (thought not very often). I think limiting our thinking to "git am" in that case is probably OK. We have to draw the line somewhere. -Peff