Re: [PATCH 08/23] midx: read packfiles from pack directory

2018-06-07 Thread Duy Nguyen
On Thu, Jun 7, 2018 at 4:03 PM, Derrick Stolee wrote: > @@ -114,14 +119,56 @@ int write_midx_file(const char *object_dir) > midx_name); > } > > + strbuf_addf(_dir, "%s/pack", object_dir); > + dir = opendir(pack_dir.buf); > + > + if (!dir) { > +

[PATCH 08/23] midx: read packfiles from pack directory

2018-06-07 Thread Derrick Stolee
When constructing a multi-pack-index file for a given object directory, read the files within the enclosed pack directory and find matches that end with ".idx" and find the correct paired packfile using add_packed_git(). Signed-off-by: Derrick Stolee --- midx.c | 51