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

Re: [offtopic?] xdelta patch format wrapper

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2008, 03:32 UTC
Message-ID
<7vy79py1it.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<47B24D8A.5090703@catalyst.net.nz>
Martin Langhoff <martin@catalyst.net.nz> writes:
Show 21 quoted lines
> So my question is what is a good format for the header? My thinking sofar:
>
>  - have a prefix to scan for, such as "xdelta" at the beginning of
>    the file, or after a newline/whitespace
>
>  - keep the <fromsha1> <tosha1> line
>
>  - \0 delimited filenames
>
>  - filenames as ambiguous bag'o'bytes or utf-8?
>    (should we have another flamewar on this? ;-) )
>
>  - keep file modes and perhaps support copy/move headers
>
>  - keep a/ b/ prefixes?
>
>  - last line in the header is length: <length-in-bytes>, followed by
>    a newline and the xdelta itself
>
>  - one or more newlines follow the end of the xdelta if there is another
>    header coming

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.

If you want to reuse that much of git, maybe our binary patch format is good enough for you? We always produce two xdelta so that we can apply in reverse, but it is Ok to add a one-way option.

Previous: Martin LanghoffNext: Martin Langhoff
Message 2 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.