Re: [PATCH 05/12] for_each_alternate_ref: replace transport code with for-each-ref

2017-01-25 Thread Junio C Hamano
Jeff King writes: > ... > This patch omits the peeled information from > for_each_alternate_ref entirely, and leaves it up to the > caller whether they want to dig up the information. > > Signed-off-by: Jeff King > --- > I also tried adding "%(*objectname)" to

[PATCH 05/12] for_each_alternate_ref: replace transport code with for-each-ref

2017-01-23 Thread Jeff King
The current method for getting the refs from an alternate is to run upload-pack in the alternate and parse its output using the normal transport code. This works and is reasonably short, but it has a very bad memory footprint when there are a lot of refs in the alternate. There are two problems: