]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/pack-objects: report reused packfile objects
authorJeff King <peff@peff.net>
Fri, 13 Sep 2019 13:02:17 +0000 (15:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Sep 2019 21:40:33 +0000 (14:40 -0700)
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>
builtin/pack-objects.c

index 76ce9069467e06545652a70040b79316f0a87fb9..c11b2ea8d43a7110eca6fa149e48c6ae2c2d9f9d 100644 (file)
@@ -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;
 }