Re: allow a differn't diff.context config for git format-patch
- From
Jeff King <peff@peff.net>
- Date
- Apr 23, 2019, 03:06 UTC
- Message-ID
- <20190423030648.GA6344@sigill.intra.peff.net>
- In-Reply-To
- <CA+49okrda1=dV=rN23oFg7LQmRp+idkDDDxFQ9R5jhGJFHKpEg@mail.gmail.com>
On Sun, Apr 14, 2019 at 04:48:53PM -0500, Shawn Landden wrote:
> When I send patches I want them to have lots of context, but when just > looking at a diff, I can always open the file for context.
Seems like a reasonable thing to want. You can already use "git format-patch -U20 ...". The usual advice for putting that in config is to define an alias wit your preferred option. I don't think it would be too big a problem for format-patch to learn some options to configure its diffs. We already have some options in format.* for various things.
-Peff