commit-graph: emit trace2 cmd_mode for each sub-command
authorGarima Singh <garima.singh@microsoft.com>
Tue, 27 Aug 2019 16:56:34 +0000 (09:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2019 09:36:19 +0000 (18:36 +0900)
commit0bd7f578b2ff8b622cb8db7a572aa68303162b2b
tree3b3a35d5e8ad7134fecbf861f7e848e29d007fce
parentbc12974a897308fd3254cf0cc90319078fe45eea
commit-graph: emit trace2 cmd_mode for each sub-command

Emit trace2_cmd_mode() messages for each commit-graph
sub-command.

The commit graph commands were in flux when trace2 was
making it's way to git. Now that we have enough sub-commands
in commit-graph, we can label the various modes within them.
Distinguishing between read, write and verify is a great
start.

Signed-off-by: Garima Singh <garima.singh@microsoft.com>
Acked-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-graph.c