summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-10-15 13:48:00 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-15 13:48:00 +0900
commitccc289915af00b44346cbf007f4f82ec2131f1a1 (patch)
tree94e9b36d867943c35ef1f18b3541d7367a11b259 /builtin/commit-graph.c
parentMerge branch 'js/fetch-jobs' (diff)
parentcommit-graph: emit trace2 cmd_mode for each sub-command (diff)
downloadtgif-ccc289915af00b44346cbf007f4f82ec2131f1a1.tar.xz
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
Diffstat (limited to 'builtin/commit-graph.c')
-rw-r--r--builtin/commit-graph.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c
index a6c500d8da..addc8d4cc0 100644
--- a/builtin/commit-graph.c
+++ b/builtin/commit-graph.c
@@ -60,6 +60,8 @@ static int graph_verify(int argc, const char **argv)
OPT_END(),
};
+ trace2_cmd_mode("verify");
+
opts.progress = isatty(2);
argc = parse_options(argc, argv, NULL,
builtin_commit_graph_verify_options,
@@ -107,6 +109,8 @@ static int graph_read(int argc, const char **argv)
OPT_END(),
};
+ trace2_cmd_mode("read");
+
argc = parse_options(argc, argv, NULL,
builtin_commit_graph_read_options,
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.expire_time = 0;
+ trace2_cmd_mode("write");
+
argc = parse_options(argc, argv, NULL,
builtin_commit_graph_write_options,
builtin_commit_graph_write_usage, 0);