git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Configuring diff --color-words using git-config?
@ 2011-06-01 10:12 Frédéric Delanoy
  2011-06-01 16:51 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Frédéric Delanoy @ 2011-06-01 10:12 UTC (permalink / raw)
  To: git

Hi

Is it possible to use a config option so that "--color-words" is used
as default for diff?

I RTFM'ed git-config but didn't find such an option.

Frédéric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Configuring diff --color-words using git-config?
  2011-06-01 10:12 Configuring diff --color-words using git-config? Frédéric Delanoy
@ 2011-06-01 16:51 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2011-06-01 16:51 UTC (permalink / raw)
  To: Frédéric Delanoy; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-01 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 10:12 Configuring diff --color-words using git-config? Frédéric Delanoy
2011-06-01 16:51 ` Jeff King

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).