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, 03:46 UTC
Message-ID
<47B26830.6090501@catalyst.net.nz>
In-Reply-To
<7vy79py1it.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> I am lost as to your objective because you seem to be keeping a
> whole LOT more than I would have imagined for a specialized
> purpose file format.
My source files are 2 zipfiles that I know contain 1 xml file, and then
may contain any arbitrary files. As a specialised file format is a
pretty general case ;-) Because of compression, xdeltas of the zipfiles
aren't good. So what I want to do is to diff the 2 unzipped directories
- nothing git-specific, I could use diff -urN.

Git diff *is* better in that it handles binary files, but we pay a sizable cost in being reversible.

So I am thinking of doing is writing a wrapper that does the equivalent of the "urN" flags to diff, but uses xdelta as the diffing algorithm.

As my case is rather general I suspect I'm better off biting the bullet and writing something generally useful - it doesn't take that much more effort and if it ends up being popular, I'll have some help with its maintenance ;-)

In other words, I'm trolling for peer review to make sure the tool is sane, and will be useful to others ;-)

> If you want to reuse that much of git

I don't think I'll use *any* git code at all for the time being. If it was trivial to produce a statically compiled git-diff.exe and git-apply-patch.exe that work without funny dependencies on any windows box then I would. Don't think any of the windows ports of git are there (even though they are excellent!).

cheers,
m
-- 
-----------------------------------------------------------------------
Martin @ Catalyst .Net .NZ  Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/           PHYS: Level 2, 150-154 Willis St
NZ: +64(4)916-7224    MOB: +64(21)364-017    UK: 0845 868 5733 ext 7224
      Make things as simple as possible, but no simpler - Einstein
-----------------------------------------------------------------------
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.