From: Jeff King Date: Fri, 13 Sep 2019 13:02:17 +0000 (+0200) Subject: builtin/pack-objects: report reused packfile objects X-Git-Tag: v2.26.0-rc0~67^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bab28d9f97088f58863665f608020f64dffec9ee;p=thirdparty%2Fgit.git 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 Signed-off-by: Jeff King Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 76ce906946..c11b2ea8d4 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -3525,7 +3525,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) if (progress) fprintf_ln(stderr, _("Total %"PRIu32" (delta %"PRIu32")," - " reused %"PRIu32" (delta %"PRIu32")"), - written, written_delta, reused, reused_delta); + " reused %"PRIu32" (delta %"PRIu32")," + " pack-reused %"PRIu32), + written, written_delta, reused, reused_delta, + reuse_packfile_objects); return 0; }