MCPcopy Create free account
hub / github.com/git/git / cmd_multi_pack_index_verify

Function cmd_multi_pack_index_verify

builtin/multi-pack-index.c:314–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static int cmd_multi_pack_index_verify(int argc, const char **argv,
315 const char *prefix,
316 struct repository *repo UNUSED)
317{
318 struct option *options;
319 static struct option builtin_multi_pack_index_verify_options[] = {
320 OPT_END(),
321 };
322 struct odb_source *source;
323
324 options = add_common_options(builtin_multi_pack_index_verify_options);
325
326 trace2_cmd_mode(argv[0]);
327
328 if (isatty(2))
329 opts.flags |= MIDX_PROGRESS;
330 argc = parse_options(argc, argv, prefix,
331 options, builtin_multi_pack_index_verify_usage,
332 0);
333 if (argc)
334 usage_with_options(builtin_multi_pack_index_verify_usage,
335 options);
336 source = handle_object_dir_option(the_repository);
337
338 FREE_AND_NULL(options);
339
340 return verify_midx_file(source, opts.flags);
341}
342
343static int cmd_multi_pack_index_expire(int argc, const char **argv,
344 const char *prefix,

Callers

nothing calls this directly

Calls 5

parse_optionsFunction · 0.85
usage_with_optionsFunction · 0.85
handle_object_dir_optionFunction · 0.85
verify_midx_fileFunction · 0.85
add_common_optionsFunction · 0.70

Tested by

no test coverage detected