| 339 | } |
| 340 | |
| 341 | int 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 | } |
nothing calls this directly
no test coverage detected