@matheusbsbs / matheus-bagliano / commits / 5f4347bba3
Fork 0

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>

Nicolas Pitre committed Feb 28, 2008 at 00:25 UTC 5f4347bba39ddb147b06913ac263fc46954d2d0b
3 files changed +7 -7
Documentation/git-verify-pack.txt
+2 -2
@@ -32,11 +32,11 @@ OUTPUT FORMAT
32 -------------
33 When specifying the -v option the format used is:
34
35 - SHA1 type size offset-in-packfile
35 + SHA1 type size size-in-pack-file offset-in-packfile
36
37 for objects that are not deltified in the pack, and
38
39 - SHA1 type size offset-in-packfile depth base-SHA1
39 + SHA1 type size size-in-packfile offset-in-packfile depth base-SHA1
40
41 for objects that are deltified.
42
contrib/stats/packinfo.pl
+1 -1
@@ -93,7 +93,7 @@ my %depths;
93 my @depths;
94
95 while (<STDIN>) {
96 - my ($sha1, $type, $size, $offset, $depth, $parent) = split(/\s+/, $_);
96 + my ($sha1, $type, $size, $space, $offset, $depth, $parent) = split(/\s+/, $_);
97 next unless ($sha1 =~ /^[0-9a-f]{40}$/);
98 $depths{$sha1} = $depth || 0;
99 push(@depths, $depth || 0);
pack-check.c
+4 -4
@@ -128,11 +128,11 @@ static void show_pack_info(struct packed_git *p)
128 base_sha1);
129 printf("%s ", sha1_to_hex(sha1));
130 if (!delta_chain_length)
131 - printf("%-6s %lu %"PRIuMAX"\n",
132 - type, size, (uintmax_t)offset);
131 + printf("%-6s %lu %lu %"PRIuMAX"\n",
132 + type, size, store_size, (uintmax_t)offset);
133 else {
134 - printf("%-6s %lu %"PRIuMAX" %u %s\n",
135 - type, size, (uintmax_t)offset,
134 + printf("%-6s %lu %lu %"PRIuMAX" %u %s\n",
135 + type, size, store_size, (uintmax_t)offset,
136 delta_chain_length, sha1_to_hex(base_sha1));
137 if (delta_chain_length <= MAX_CHAIN)
138 chain_histogram[delta_chain_length]++;