1#include "builtin.h"
2#include "cache.h"
3#include "config.h"
4#include "parse-options.h"
5
6static char const * const builtin_multi_pack_index_usage[] = {
7 N_("git multi-pack-index [--object-dir=<dir>]"),
8 NULL
9};
10
11static struct opts_multi_pack_index {
12 const char *object_dir;
13} opts;
14
15int cmd_multi_pack_index(int argc, const char **argv,
16 const char *prefix)
17{
18 static struct option builtin_multi_pack_index_options[] = {
19 OPT_FILENAME(0, "object-dir", &opts.object_dir,
20 N_("object directory containing set of packfile and pack-index pairs")),
21 OPT_END(),
22 };
23
24 git_config(git_default_config, NULL);
25
26 argc = parse_options(argc, argv, prefix,
27 builtin_multi_pack_index_options,
28 builtin_multi_pack_index_usage, 0);
29
30 if (!opts.object_dir)
31 opts.object_dir = get_object_directory();
32
33 return 0;
34}