Re: git pack/unpack over bittorrent - works!

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

 



sorry, shouldn't have hit send so quick.

On Thu, Sep 2, 2010 at 10:10 PM, Luke Kenneth Casson Leighton
<luke.leighton@xxxxxxxxx> wrote:

> were talking about?  well, here it is *splat* - are you able to
> recreate the pack-object from that, for me, and if so please gimme
> again"

> 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?

 becauuuuse... if soooo... then that's a solution!  you get the .idx
file first, you make sure that that's cached (and it's small, isn't
it, so that would be ok), then you transfer it around the network, and
you ask each repo if they can re-create the pack-object from the
contents of the .idx, if they can, blam, they're a seed/sharer for
that pack-object; if they can't, tough titty, they've probably had git
gc run, or had some more commits added, or whatever, and can't
participate, wow big deal, no great loss.

does that fly? :)  if it doesn't fly (with --window=0 --delta=0) would
it be easy to add an option to say "oi, gimme a pack with nothing but
these refs, in exactly this order, no quibbling, no questions, just
gimme"?  and you could call it "the same as the original" because,
duh, it would contain exactly the same objects as the original.

am i even vaaaguely along the right lines? *scratches head*.

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]