3 #include "parse-options.h"
5 static char const * const builtin_commit_graph_usage
[] = {
6 N_("git commit-graph [--object-dir <objdir>]"),
10 static struct opts_commit_graph
{
15 int cmd_commit_graph(int argc
, const char **argv
, const char *prefix
)
17 static struct option builtin_commit_graph_options
[] = {
18 OPT_STRING(0, "object-dir", &opts
.obj_dir
,
20 N_("The object directory to store the graph")),
24 if (argc
== 2 && !strcmp(argv
[1], "-h"))
25 usage_with_options(builtin_commit_graph_usage
,
26 builtin_commit_graph_options
);
28 git_config(git_default_config
, NULL
);
29 argc
= parse_options(argc
, argv
, prefix
,
30 builtin_commit_graph_options
,
31 builtin_commit_graph_usage
,
32 PARSE_OPT_STOP_AT_NON_OPTION
);
34 usage_with_options(builtin_commit_graph_usage
,
35 builtin_commit_graph_options
);