4 #include "repository.h"
5 #include "object-store.h"
7 static int read_midx_file(const char *object_dir)
10 struct multi_pack_index *m = load_multi_pack_index(object_dir);
15 printf("header: %08x %d %d %d\n",
23 if (m->chunk_pack_names)
24 printf(" pack-names");
29 for (i = 0; i < m->num_packs; i++)
30 printf("%s\n", m->pack_names[i]);
32 printf("object-dir: %s\n", m->object_dir);
37 int cmd__read_midx(int argc, const char **argv)
40 usage("read-midx <object-dir>");
42 return read_midx_file(argv[1]);