Re: git pack/unpack over bittorrent - works!

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

 



very quick reply am off out

On Fri, Sep 3, 2010 at 1:29 AM, Nicolas Pitre <nico@xxxxxxxxxxx> wrote:
>> sooo.... taking a wild guess, here: if you were to parse the .idx file
>> and extract the list of object-refs, and then pass that to "git
>> pack-objects --window=0 --delta=0", would you end up with the exact
>> same pack file, because you'd forced git pack-objects to only return
>> that specific list of object-refs?
>
> If you do this i.e. turn off delta compression, then the 615 MB
> repository above will turn itself into a multi-gigabyte pack!

 sorry nicolas, i believe you may have misunderstood.  first obtain
.idx which will return a delta-compressed list of objects, yes?  then
use --window=0 --delta=0 with exact same list, surely you will end up
with the exact same list which you gave to the *previous* command,
yes?

$ git pack-objects
>> .pack and .idx
$ mv .pack .pack2
$ extract_pack_objects_from_idx.sh .idx > foo
$ git pack-objects --window=0 --delta=0 < foo
$ diff .pack .pack2

so no, of _course_ not just ask --window=0 --delta=0 for the very
first run: if that's what i'd said, that would indeed be dumb.

l.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]