Re: git pack/unpack over bittorrent - works!
- From
- Luke Kenneth Casson Leighton <luke.leighton@gmail.com>
- Date
- Sep 3, 2010, 10:23 UTC
- Message-ID
- <AANLkTi=r21khJLMvwH7h2M_Yqv8QFAD-L2RX8NrbEjoc@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.2.00.1009021931340.19366@xanadu.home>
very quick reply am off out
On Fri, Sep 3, 2010 at 1:29 AM, Nicolas Pitre <nico@fluxnic.net> wrote:
Show 8 quoted lines
>> 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.