From: Jeff King <peff@peff.net>
To: "Frédéric Delanoy" <frederic.delanoy@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Configuring diff --color-words using git-config?
Date: Wed, 1 Jun 2011 12:51:48 -0400 [thread overview]
Message-ID: <20110601165147.GE7132@sigill.intra.peff.net> (raw)
In-Reply-To: <BANLkTikMPDM7ce0mJhx=Hmm4bhLFCREUCQ@mail.gmail.com>
On Wed, Jun 01, 2011 at 12:12:18PM +0200, Frédéric Delanoy wrote:
> Is it possible to use a config option so that "--color-words" is used
> as default for diff?
No. And I'm not sure it would be a good idea, as the resulting diffs
would not be able to be applied, which could create some confusion.
Another option would be to use an alias to reduce the amount of typing:
git config alias.dcw "diff --color-words"
-Peff
prev parent reply other threads:[~2011-06-01 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 10:12 Configuring diff --color-words using git-config? Frédéric Delanoy
2011-06-01 16:51 ` Jeff King [this message]
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=20110601165147.GE7132@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=frederic.delanoy@gmail.com \
--cc=git@vger.kernel.org \
/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).