Re: [PATCH 03/12] for_each_alternate_ref: use strbuf for path allocation
- From
Jeff King <peff@peff.net>
- Date
- Jan 25, 2017, 18:40 UTC
- Message-ID
- <20170125184026.cm324yefycsrhhin@sigill.intra.peff.net>
- In-Reply-To
- <xmqqvat3at8u.fsf@gitster.mtv.corp.google.com>
On Wed, Jan 25, 2017 at 10:29:05AM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> Jeff King <peff@peff.net> 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