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

2 messages, 2 authors, 2017-01-25 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2017-01-25 18:29:18

Jeff King [off-list ref] 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.

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

From: Jeff King <hidden>
Date: 2017-01-25 18:40:32

On Wed, Jan 25, 2017 at 10:29:05AM -0800, Junio C Hamano wrote:
Jeff King [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help