Re: [RFC] remarks about custom diff driver
- From
Jeff King <peff@peff.net>
- Date
- Aug 27, 2007, 10:45 UTC
- Message-ID
- <20070827104529.GA25685@coredump.intra.peff.net>
- In-Reply-To
- <vpq8x7x5knh.fsf@bauges.imag.fr>
On Mon, Aug 27, 2007 at 12:36:34PM +0200, Matthieu Moy wrote:
Show 7 quoted lines
> Indeed, what I would have needed is a custum text converter. In my > case, I would have said something like > > [...] > > Any opinion? Do you think that's overkill? Anyone else have a > particuliar experience with custom diff engine?
Interestingly enough, I tried using a custom diff for the first time earlier today and came to the exact same conclusion (I was diff'ing photos that were tagged with exif keywords). I suspect a large number of diff engines will simply want to convert content into a canonical text format.
I wonder if you could simply use a "diff-filter" attribute that would clean and smudge in the same way as "filter", except it would only do so when creating or applying diffs. In most cases, you wouldn't have a "clean" component (since the conversion to text is lossy).
-Peff