mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
Merge branch 'gs/commit-graph-trace-with-cmd'
Dev support. * gs/commit-graph-trace-with-cmd: commit-graph: emit trace2 cmd_mode for each sub-command
This commit is contained in:
commit
ccc289915a
|
@ -60,6 +60,8 @@ static int graph_verify(int argc, const char **argv)
|
||||||
OPT_END(),
|
OPT_END(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trace2_cmd_mode("verify");
|
||||||
|
|
||||||
opts.progress = isatty(2);
|
opts.progress = isatty(2);
|
||||||
argc = parse_options(argc, argv, NULL,
|
argc = parse_options(argc, argv, NULL,
|
||||||
builtin_commit_graph_verify_options,
|
builtin_commit_graph_verify_options,
|
||||||
|
@ -107,6 +109,8 @@ static int graph_read(int argc, const char **argv)
|
||||||
OPT_END(),
|
OPT_END(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trace2_cmd_mode("read");
|
||||||
|
|
||||||
argc = parse_options(argc, argv, NULL,
|
argc = parse_options(argc, argv, NULL,
|
||||||
builtin_commit_graph_read_options,
|
builtin_commit_graph_read_options,
|
||||||
builtin_commit_graph_read_usage, 0);
|
builtin_commit_graph_read_usage, 0);
|
||||||
|
@ -190,6 +194,8 @@ static int graph_write(int argc, const char **argv)
|
||||||
split_opts.max_commits = 0;
|
split_opts.max_commits = 0;
|
||||||
split_opts.expire_time = 0;
|
split_opts.expire_time = 0;
|
||||||
|
|
||||||
|
trace2_cmd_mode("write");
|
||||||
|
|
||||||
argc = parse_options(argc, argv, NULL,
|
argc = parse_options(argc, argv, NULL,
|
||||||
builtin_commit_graph_write_options,
|
builtin_commit_graph_write_options,
|
||||||
builtin_commit_graph_write_usage, 0);
|
builtin_commit_graph_write_usage, 0);
|
||||||
|
|
Loading…
Reference in a new issue