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

--color-diff='.' considered useful

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Nov 16, 2015, 14:25 UTC
Message-ID
<5649E773.7040705@drmicha.warpmail.net>
git tip of the day:

git diff --color-words='.' git show --color-words='.'

That will help you find that 1 character change that a failed default word split hides from your eyes.

I guess everyone here will know already, but I found that super useful and much easier than trying to get a meaningful word split for that 100+ char TeX source line without a single space...

Cheers, Michael

Next: Matthieu Moy
Message 1 of 4 in “--color-diff='.' considered useful”
  1. Michael J GruberNov 16, 2015
  2. Matthieu MoyNov 16, 2015
  3. Documentation/diff: give --word-diff-regex=. exampleMichael J Gruber, Nov 20, 2015
  4. Matthieu MoyNov 20, 2015

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.