mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
70f5d5d31c
commit
5f4347bba3
@@ -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]++;
|
||||
|
||||
Reference in New Issue
Block a user