{"thread":{"id":"27520","subject":"Configuring diff --color-words using git-config?","startedAt":"2011-06-01T10:12:18Z","lastAt":"2011-06-01T16:51:48Z","messageCount":2,"participants":["Frédéric Delanoy","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"169108","messageId":"BANLkTikMPDM7ce0mJhx=Hmm4bhLFCREUCQ@mail.gmail.com","threadId":"27520","inReplyTo":null,"subject":"Configuring diff --color-words using git-config?","fromName":"Frédéric Delanoy","fromEmail":"frederic.delanoy@gmail.com","sentAt":"2011-06-01T10:12:18Z","receivedAt":"2011-06-01T10:12:18Z","isPatch":false,"sender":{"key":"frederic.delanoy@gmail.com","avatar":null},"body":"Hi\n\nIs it possible to use a config option so that \"--color-words\" is used\nas default for diff?\n\nI RTFM'ed git-config but didn't find such an option.\n\nFrédéric\n"},{"id":"169128","messageId":"20110601165147.GE7132@sigill.intra.peff.net","threadId":"27520","inReplyTo":"BANLkTikMPDM7ce0mJhx=Hmm4bhLFCREUCQ@mail.gmail.com","subject":"Re: Configuring diff --color-words using git-config?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2011-06-01T16:51:48Z","receivedAt":"2011-06-01T16:51:48Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 01, 2011 at 12:12:18PM +0200, Frédéric Delanoy wrote:\n\n> Is it possible to use a config option so that \"--color-words\" is used\n> as default for diff?\n\nNo. And I'm not sure it would be a good idea, as the resulting diffs\nwould not be able to be applied, which could create some confusion.\n\nAnother option would be to use an alias to reduce the amount of typing:\n\n  git config alias.dcw \"diff --color-words\"\n\n-Peff\n"}]}