Re: git pack/unpack over bittorrent - works!
On Thu, Sep 2, 2010 at 8:29 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 8 quoted lines
> Luke Kenneth Casson Leighton <luke.leighton@gmail.com> wrote:
>>
>> * based on what you kindly mentioned about "git repack -f", would a
>> (well-written!) patch to git pack-objects to add a
>> "--single-thread-only" option be acceptable?
>
> Probably not. I can't think of a good reason to limit the number
> of threads that get used.
i can - so that git pack-objects, after "git repack -f", returns a
canonical pack! :)
> We already have pack.threads as a
> configuration variable to support controlling this for the system,
> but that's about the only thing that really makes sense.
ookaaay, so that would work, but would force that particular repo to
be _entirely_ single-threaded, which is non-optimal when all that's
needed is "git pack-objects" to be single-threaded. sure, i could
write a hack with some shell-script which takes the current option /
value for "pack.threads", stores it, changes it to 1, runs "git
pack-objects" and then changes it back again, but... eeuw. (not to
mention race-conditions....)
l.