Skip to content

Commit 974e157

Browse files
committed
Merge branch 'jk/pack-objects-reports-num-objects-to-trace2' into pu
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
2 parents 48a2939 + 9ed8790 commit 974e157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/pack-objects.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,8 @@ static void write_pack_file(void)
994994
if (written != nr_result)
995995
die(_("wrote %"PRIu32" objects while expecting %"PRIu32),
996996
written, nr_result);
997+
trace2_data_intmax("pack-objects", the_repository,
998+
"write_pack_file/wrote", nr_result);
997999
}
9981000

9991001
static int no_try_delta(const char *path)

0 commit comments

Comments
 (0)