packfile: generalize pack directory list
authorDerrick Stolee <stolee@gmail.com>
Thu, 12 Jul 2018 19:39:25 +0000 (15:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 18:27:28 +0000 (11:27 -0700)
commit9208e318f548d28c677203a222f02a31a15c5d0e
tree2d05a625b99ca427c38e8110047841d53f29c550
parent2c3813354b2c02221f8496d8f8671f5b33d878ad
packfile: generalize pack directory list

In anticipation of sharing the pack directory listing with the
multi-pack-index, generalize prepare_packed_git_one() into
for_each_file_in_pack_dir().

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c
packfile.h