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

Showing whitespace on minus lines of diff ouput

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 5, 2010, 01:47 UTC
Message-ID
<76718491002041747t327bf2f5l85e095244f6ee1ed@mail.gmail.com>
The colored diff output is quite helpful to show introductions of whitespace.

However, if whitespace has been removed, it's impossible to see in the diff output since whitespace is colorized on '+' lines, but not '-' lines.

I'm looking at diff.c, but wow. Can someone more familiar with this file point me toward how I'd make a patch to colorize whitespace on '-' lines as well?

Thanks,
j.
Next: Jay Soffian
Message 1 of 7 in “Showing whitespace on minus lines of diff ouput”
  1. Jay SoffianFeb 5, 2010
  2. Jay SoffianFeb 5, 2010
  3. Jay SoffianFeb 5, 2010
  4. Junio C HamanoFeb 5, 2010
  5. Jay SoffianFeb 5, 2010
  6. Junio C HamanoFeb 5, 2010
  7. Jay SoffianFeb 5, 2010

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.