Skip to content

Commit bab28d9

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5fa0f52 commit bab28d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin/pack-objects.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,7 +3525,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
35253525
if (progress)
35263526
fprintf_ln(stderr,
35273527
_("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);
35303532
return 0;
35313533
}

0 commit comments

Comments
 (0)