Skip to content

Commit 319d655

Browse files
committed
Merge branch 'gs/commit-graph-trace-with-cmd' into jch
Dev support. * gs/commit-graph-trace-with-cmd: commit-graph: emit trace2 cmd_mode for each sub-command
2 parents 5640973 + 0bd7f57 commit 319d655

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

builtin/commit-graph.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ static int graph_verify(int argc, const char **argv)
6060
OPT_END(),
6161
};
6262

63+
trace2_cmd_mode("verify");
64+
6365
opts.progress = isatty(2);
6466
argc = parse_options(argc, argv, NULL,
6567
builtin_commit_graph_verify_options,
@@ -107,6 +109,8 @@ static int graph_read(int argc, const char **argv)
107109
OPT_END(),
108110
};
109111

112+
trace2_cmd_mode("read");
113+
110114
argc = parse_options(argc, argv, NULL,
111115
builtin_commit_graph_read_options,
112116
builtin_commit_graph_read_usage, 0);
@@ -190,6 +194,8 @@ static int graph_write(int argc, const char **argv)
190194
split_opts.max_commits = 0;
191195
split_opts.expire_time = 0;
192196

197+
trace2_cmd_mode("write");
198+
193199
argc = parse_options(argc, argv, NULL,
194200
builtin_commit_graph_write_options,
195201
builtin_commit_graph_write_usage, 0);

0 commit comments

Comments
 (0)