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