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

Re: [RFC] Line diff fragments, custom colour markers and word change highlighting

From
Jeff King <peff@peff.net>
Date
Jan 31, 2009, 06:57 UTC
Message-ID
<20090131065742.GA3033@coredump.intra.peff.net>
In-Reply-To
<3f4fd2640901301244s34d94e0fka00ce2eb6f6bef48@mail.gmail.com>
On Fri, Jan 30, 2009 at 08:44:26PM +0000, Reece Dunn wrote:
> At the moment, I am manually editing the output of git diff to produce
> the desired output. I intend on modifying git to get it to produce the
> output in a format that I am interested in so that I don't have to
> edit it by hand.

Have you considered writing an external diff driver (see the description of GIT_EXTERNAL_DIFF in git(1))? That would be a good starting point for experimenting if you want to use a totally different diff driver (but if you are just making tweaks to git's diff code, then obviously that isn't a good idea).

Your RFCs look more like tweaks, but I wonder if there isn't already a good external tool for doing these sorts of non-line-oriented diffs.

-Peff
Previous: Reece Dunn
Message 2 of 2 in “[RFC] Line diff fragments, custom colour markers and word change highlighting”
  1. Reece DunnJan 30, 2009
  2. Jeff KingJan 31, 2009

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.