Re: Better suggestions when git-am(1) fails
- From
Jeff King <peff@peff.net>
- Date
- Mar 13, 2023, 16:37 UTC
- Message-ID
- <ZA9RYncZaqoA0mCw@coredump.intra.peff.net>
- In-Reply-To
- <xmqqh6us7epk.fsf@gitster.g>
On Fri, Mar 10, 2023 at 08:28:55AM -0800, Junio C Hamano wrote:
Show 9 quoted lines
> Jeff King <peff@peff.net> writes: > > > 1. I feel like "-p1" was pretty standard even before Git. You'd > > extract two copies of the tarball, one into "foo-1.2.3" and one > > into "foo-1.2.3.orig", and then "diff -Nru" between them to send a > > patch. > > I would too, but then we wouldn't have accepted the request to add > .noprefix configuration; I do not recall where it came from.
I always thought it was an aesthetic thing for humans viewing diffs (and likewise mnemonicprefix). The original thread doesn't give much motivation, though:
https://lore.kernel.org/git/1272852221-14927-1-git-send-email-eli@cloudera.com/
That is not really important as what the option has grown to be used for, of course, but it's another data point (or lack thereof in this case).
-Peff