MCPcopy Index your code
hub / github.com/git/git / cmd_commit_graph

Function cmd_commit_graph

builtin/commit-graph.c:341–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341int cmd_commit_graph(int argc,
342 const char **argv,
343 const char *prefix,
344 struct repository *repo)
345{
346 parse_opt_subcommand_fn *fn = NULL;
347 struct option builtin_commit_graph_options[] = {
348 OPT_SUBCOMMAND("verify", &fn, graph_verify),
349 OPT_SUBCOMMAND("write", &fn, graph_write),
350 OPT_END(),
351 };
352 struct option *options = parse_options_concat(builtin_commit_graph_options, common_opts);
353
354 repo_config(the_repository, git_default_config, NULL);
355
356 disable_replace_refs();
357 save_commit_buffer = 0;
358
359 argc = parse_options(argc, argv, prefix, options,
360 builtin_commit_graph_usage, 0);
361 FREE_AND_NULL(options);
362
363 return fn(argc, argv, prefix, repo);
364}

Callers

nothing calls this directly

Calls 4

parse_options_concatFunction · 0.85
disable_replace_refsFunction · 0.85
parse_optionsFunction · 0.85
repo_configFunction · 0.50

Tested by

no test coverage detected