git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Jun 1, 2011, 16:51 UTC
Message-ID
<20110601165147.GE7132@sigill.intra.peff.net>
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
Previous: Frédéric Delanoy
Message 2 of 2 in “Configuring diff --color-words using git-config?”
  1. Frédéric DelanoyJun 1, 2011
  2. Jeff KingJun 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.