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

Re: [RFC] Add the --color-words option to the diff options family

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jul 30, 2006, 00:57 UTC
Message-ID
<E1G6zc4-0007PC-9j@moooo.ath.cx>
In-Reply-To
<Pine.LNX.4.63.0607282354450.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 13 quoted lines
> With this option, the changed words are shown inline. For example,
> if a file containing "This is foo" is changed to "This is bar", the diff
> will now show "This is " in plain text, "foo" in red, and "bar" in green.
> 
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> 
> ---
> 
> 	I am probably the only person who finds it useful, but there
> 	is a high coolness factor attached to it.
> 
> 	And the libxdiff library actually made it very easy to do. (Yes, 
> 	there are two nested calls to xdiff...)

I'd probably find it more useful if it would still show two lines but only the relevant part in red/green.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 5 in “[RFC] Add the --color-words option to the diff options family”
  1. Johannes SchindelinJul 28, 2006
  2. Matthias LederhoferJul 30, 2006
  3. Johannes SchindelinJul 30, 2006
  4. Junio C HamanoJul 31, 2006
  5. Johannes SchindelinJul 31, 2006

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.