#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" #include "config.h" #include "gettext.h" #include "parse-options.h" #include "midx.h" #include "strbuf.h" #include "trace2.h" #include "object-store-ll.h" #include "replace-object.h" #include "repository.h" #define BUILTIN_MIDX_WRITE_USAGE … #define BUILTIN_MIDX_VERIFY_USAGE … #define BUILTIN_MIDX_EXPIRE_USAGE … #define BUILTIN_MIDX_REPACK_USAGE … static char const * const builtin_multi_pack_index_write_usage[] = …; static char const * const builtin_multi_pack_index_verify_usage[] = …; static char const * const builtin_multi_pack_index_expire_usage[] = …; static char const * const builtin_multi_pack_index_repack_usage[] = …; static char const * const builtin_multi_pack_index_usage[] = …; static struct opts_multi_pack_index { … } opts; static int parse_object_dir(const struct option *opt, const char *arg, int unset) { … } static struct option common_opts[] = …; static struct option *add_common_options(struct option *prev) { … } static int git_multi_pack_index_write_config(const char *var, const char *value, const struct config_context *ctx UNUSED, void *cb UNUSED) { … } static void read_packs_from_stdin(struct string_list *to) { … } static int cmd_multi_pack_index_write(int argc, const char **argv, const char *prefix) { … } static int cmd_multi_pack_index_verify(int argc, const char **argv, const char *prefix) { … } static int cmd_multi_pack_index_expire(int argc, const char **argv, const char *prefix) { … } static int cmd_multi_pack_index_repack(int argc, const char **argv, const char *prefix) { … } int cmd_multi_pack_index(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }