From: Jeff King <peff@peff.net>
To: Keith Cascio <keith@CS.UCLA.EDU>
Cc: git@vger.kernel.org
Subject: Re: diff settings
Date: Sat, 24 Jan 2009 14:22:23 -0500 [thread overview]
Message-ID: <20090124192222.GA18010@coredump.intra.peff.net> (raw)
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
next prev parent reply other threads:[~2009-01-24 19:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 17:38 diff settings Keith Cascio
2009-01-24 19:22 ` Jeff King [this message]
2009-01-24 19:33 ` Teemu Likonen
2009-01-24 20:01 ` Keith Cascio
2009-01-25 21:02 ` Ted Pavlic
2009-01-25 21:11 ` Keith Cascio
2009-01-26 2:06 ` Ted Pavlic
2009-01-29 16:26 ` Ted Pavlic
2009-01-29 16:33 ` Johannes Schindelin
2009-01-29 18:46 ` Keith Cascio
2009-01-29 21:07 ` Nanako Shiraishi
[not found] ` <alpine.GSO.2.00.0901310750470.5437@kiwi.cs.ucla.edu>
2009-01-31 19:47 ` Ted Pavlic
2009-01-31 23:10 ` Keith Cascio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090124192222.GA18010@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=keith@CS.UCLA.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).