Re: [PATCH 03/12] for_each_alternate_ref: use strbuf for path allocation

2017-01-25 Thread Jeff King
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

Re: [PATCH 03/12] for_each_alternate_ref: use strbuf for path allocation

2017-01-25 Thread Junio C Hamano
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

[PATCH 03/12] for_each_alternate_ref: use strbuf for path allocation

2017-01-23 Thread Jeff King
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". Using a strbuf to hold the path lets