summaryrefslogtreecommitdiff
path: root/builtin/multi-pack-index.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2019-03-21 19:36:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-22 05:31:11 (GMT)
commitd829223a4256d2a6f0e07425ba3828d28bda7596 (patch)
tree820bb1a8aae6c469553c4a8d5b672d0df8c6914b /builtin/multi-pack-index.c
parent9d81ecb52b5e6611f66c968884dde42928350b18 (diff)
downloadgit-d829223a4256d2a6f0e07425ba3828d28bda7596.zip
git-d829223a4256d2a6f0e07425ba3828d28bda7596.tar.gz
git-d829223a4256d2a6f0e07425ba3828d28bda7596.tar.bz2
trace2:data: add trace2 data to midx
Log multi-pack-index command mode. Log number of objects and packfiles in the midx. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/multi-pack-index.c')
-rw-r--r--builtin/multi-pack-index.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
index fca70f8..ae6e476 100644
--- a/builtin/multi-pack-index.c
+++ b/builtin/multi-pack-index.c
@@ -3,6 +3,7 @@
#include "config.h"
#include "parse-options.h"
#include "midx.h"
+#include "trace2.h"
static char const * const builtin_multi_pack_index_usage[] = {
N_("git multi-pack-index [--object-dir=<dir>] (write|verify)"),
@@ -40,6 +41,8 @@ int cmd_multi_pack_index(int argc, const char **argv,
return 1;
}
+ trace2_cmd_mode(argv[0]);
+
if (!strcmp(argv[0], "write"))
return write_midx_file(opts.object_dir);
if (!strcmp(argv[0], "verify"))