aboutsummaryrefslogtreecommitdiff
path: root/pack-check.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-02-28 00:25:20 -0500
committerJunio C Hamano <gitster@pobox.com>2008-03-01 01:44:46 -0800
commit5f4347bba39ddb147b06913ac263fc46954d2d0b (patch)
tree14625a65b23ed1892c9c8de5c86f02e1523fe5d0 /pack-check.c
parent70f5d5d31cbf0ba273083805124ad67135142527 (diff)
downloadgit-5f4347bba39ddb147b06913ac263fc46954d2d0b.tar.gz
git-5f4347bba39ddb147b06913ac263fc46954d2d0b.tar.xz
add storage size output to 'git verify-pack -v'
This can possibly break external scripts that depend on the previous output, but those script can't possibly be critical to Git usage, and fixing them should be trivial. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-check.c')
-rw-r--r--pack-check.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pack-check.c b/pack-check.c
index ae2568503..0f8ad2c00 100644
--- a/pack-check.c
+++ b/pack-check.c
@@ -128,11 +128,11 @@ static void show_pack_info(struct packed_git *p)
base_sha1);
printf("%s ", sha1_to_hex(sha1));
if (!delta_chain_length)
- printf("%-6s %lu %"PRIuMAX"\n",
- type, size, (uintmax_t)offset);
+ printf("%-6s %lu %lu %"PRIuMAX"\n",
+ type, size, store_size, (uintmax_t)offset);
else {
- printf("%-6s %lu %"PRIuMAX" %u %s\n",
- type, size, (uintmax_t)offset,
+ printf("%-6s %lu %lu %"PRIuMAX" %u %s\n",
+ type, size, store_size, (uintmax_t)offset,
delta_chain_length, sha1_to_hex(base_sha1));
if (delta_chain_length <= MAX_CHAIN)
chain_histogram[delta_chain_length]++;