builtin/pack-objects: report reused packfile objects

To see when packfile reuse kicks in or not, it is useful to show reused packfile objects statistics in the output of upload-pack. Helped-by: James Ramsay <james@jramsay.com.au> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Sep 13, 2019 at 15:02 UTC bab28d9f97088f58863665f608020f64dffec9ee
1 file changed +4 -2
builtin/pack-objects.c
+4 -2
@@ -3525,7 +3525,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
3525 if (progress)
3526 fprintf_ln(stderr,
3527 _("Total %"PRIu32" (delta %"PRIu32"),"
3528 - " reused %"PRIu32" (delta %"PRIu32")"),
3529 - written, written_delta, reused, reused_delta);
3528 + " reused %"PRIu32" (delta %"PRIu32"),"
3529 + " pack-reused %"PRIu32),
3530 + written, written_delta, reused, reused_delta,
3531 + reuse_packfile_objects);
3532 return 0;
3533 }