From: Luke Kenneth Casson Leighton Date: Thu, 02 Sep 2010 20:06:22 GMT Subject: Re: git pack/unpack over bittorrent - works! Message-ID: In-Reply-To: <20100902192910.GJ32601@spearce.org> On Thu, Sep 2, 2010 at 8:29 PM, Shawn O. Pearce wrote: > Luke Kenneth Casson Leighton 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.