summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-05-09 00:37:23 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-05-09 00:37:23 +0900
commit3d67555744e6d4fbbc52b0a67c4b630c5d319bc2 (patch)
treefa56a215a61fbb5b15507c932b43475d796b4635 /builtin
parentMerge branch 'tz/git-svn-doc-markup-fix' (diff)
parentpack-objects: write objects packed to trace2 (diff)
downloadtgif-3d67555744e6d4fbbc52b0a67c4b630c5d319bc2.tar.xz
Merge branch 'jk/pack-objects-reports-num-objects-to-trace2'
The "git pack-objects" command learned to report the number of objects it packed via the trace2 mechanism. * jk/pack-objects-reports-num-objects-to-trace2: pack-objects: write objects packed to trace2
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 2d9a3bdc9d..d7743f110b 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -964,6 +964,8 @@ static void write_pack_file(void)
if (written != nr_result)
die(_("wrote %"PRIu32" objects while expecting %"PRIu32),
written, nr_result);
+ trace2_data_intmax("pack-objects", the_repository,
+ "write_pack_file/wrote", nr_result);
}
static int no_try_delta(const char *path)