gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: [ANNOUNCEMENT] /Arch/ embraces `git'


From: Stefan Monnier
Subject: [Gnu-arch-users] Re: [ANNOUNCEMENT] /Arch/ embraces `git'
Date: Wed, 20 Apr 2005 10:12:56 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> It might be that as long as you provide exactly the same inputs
> compression is deterministic across all platforms (at least for a
> specific compressor, like gzip).

> Having the handle fixed at 160 bits also seems limiting. It ties the
> entire archive format into exactly one hash.

Agreed.  I'd suggest to change things slightly:

   file name: <hashtype>,<hash>,<length>
   content: uncompressed binary data, prefixed by some ASCII meta-data.

Of course, you can compress those things as:

   <hashtype>,<hash>,<length>.gz

Now maybe the reason why it's not done this way is the desire to be
able to read the ASCII meta-data without having to decompress anything.

I'm not sure how important this is, and whether or not it could be
circumvented by putting that meta-data in the file name, for example as
an extension:

   <hashtype>,<hash>,<length>.mp3


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]