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

Re: [offtopic?] xdelta patch format wrapper

From
MLMartin Langhoff <martin@catalyst.net.nz>
Date
Feb 13, 2008, 04:13 UTC
Message-ID
<47B26E60.70005@catalyst.net.nz>
In-Reply-To
<7vy79py1it.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> If you want to reuse that much of git

Wondering about the confusion over this. When I talk about using xdelta, it's not the implementation in git. I intend to ship this xdelta.exe http://evanjones.ca/software/xdelta-win32.html (for Windows users at least!).

What I am sounding out is writing a wrapper written in PHP (I'd write it in Perl, but we're already shipping the PHP interpreter) that does all the parsing of the file, splits out the actual "xdelta" blobs and calls xdelta.exe to apply them to the relevant files.

Someone more talented than me would write it in perfectly portable C so that on day one works on Win32, OSX, unices and linuces. I can't so I'll look like a wimp but I'll deliver something workable ;-) But there's no reason the PHP or Perl implementation can't be considered a working prototype for a subsequent C version.

Specially if the file format makes sense. And we've been complaining about problems and ambiguities in the unified diff header. So... I'll rephrase my question

   "What would a unified diff header that didn't suck look like?"

(Ah, can't find the threads where the ambiguities of diff headers were discussed. Alas, the Google Gods aren't with me today.)

cheers,
m
Previous: Martin Langhoff
Message 7 of 7 in “[offtopic?] xdelta patch format wrapper”
  1. Martin LanghoffFeb 13, 2008
  2. Junio C HamanoFeb 13, 2008
  3. Martin LanghoffFeb 13, 2008
  4. Junio C HamanoFeb 13, 2008
  5. Johannes SchindelinFeb 13, 2008
  6. Martin LanghoffFeb 13, 2008
  7. Martin LanghoffFeb 13, 2008

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.