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

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
Previous: Matthieu MoyNext: Matthieu Moy
Message 2 of 3 in “[RFC] remarks about custom diff driver”
  1. Matthieu MoyAug 27, 2007
  2. Jeff KingAug 27, 2007
  3. Matthieu MoyAug 27, 2007

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.