threads / discuss / 27520

Configuring diff --color-words using git-config?

Subject: Configuring diff --color-words using git-config?

## tl;dr

2 messages between Jun 1, 2011 and Jun 1, 2011.

replies: 1people: 2as markdown or json

Jeff King· Jun 1, 2011, 16:51 UTC · re: Frédéric Delanoy · lore

Re: Configuring diff --color-words using git-config?

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

← back to recent threads