From: Jeff King Date: Wed, 25 Jan 2017 18:40:26 GMT Subject: Re: [PATCH 03/12] for_each_alternate_ref: use strbuf for path allocation Message-ID: <20170125184026.cm324yefycsrhhin@sigill.intra.peff.net> In-Reply-To: On Wed, Jan 25, 2017 at 10:29:05AM -0800, Junio C Hamano wrote: > Jeff King writes: > > > We have a string with ".../objects" pointing to the > > alternate object store, and overwrite bits of it to look at > > other paths in the (potential) git repository holding it. > > This works because the only path we care about is "refs", > > which is shorter than "objects". > > Yup, this was probably copied from a lazy original I wrote ;-) > Thanks for cleaning up. To be fair, the original predates all of the helper functions I used here. :) -Peff