Re: diff settings
- From
Jeff King <peff@peff.net>
- Date
- Jan 24, 2009, 19:22 UTC
- Message-ID
- <20090124192222.GA18010@coredump.intra.peff.net>
- In-Reply-To
- <alpine.GSO.2.00.0901240936080.23073@kiwi.cs.ucla.edu>
On Sat, Jan 24, 2009 at 09:38:18AM -0800, Keith Cascio wrote:
> How do I configure my local git so that diff always obeys a particular > option, e.g. "-w", without needing to type it on the command line each > time?
AFAIK, there is not a way to do it in the general case (though there are specific config options for things like rename support). When I refactored the gitattributes diff=$foo code a few months back, I tried to keep in mind the possibility of a "diff options" field. But I never actually implemented anything, as I don't personally ever use diff options in such a way.
If you're interested, it would probably not be too hard to implement (see userdiff.[ch], and the external and textconv code in diff.c for a start).
-Peff