summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-12 16:50:29 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-16 22:13:34 -0700
commitb9a62cbeb91e52aea8fc427a84e72f475dfe60cf (patch)
tree3ff64286b90eb6df7821309f0b69866fe406bbfd /builtin
parent02071b27f1587c65ddc4779017a3ddceb777de9c (diff)
downloadgit-b9a62cbeb91e52aea8fc427a84e72f475dfe60cf.tar.gz
packed_object_info_detail(): do not return a string
Instead return an integer that can be given to typename() if the caller wants a string, just like everybody else does. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/verify-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/verify-pack.c b/builtin/verify-pack.c
index b6079ae6cb..3a919b1707 100644
--- a/builtin/verify-pack.c
+++ b/builtin/verify-pack.c
@@ -33,9 +33,9 @@ static void show_pack_info(struct packed_git *p, unsigned int flags)
if (!sha1)
die("internal error pack-check nth-packed-object");
offset = nth_packed_object_offset(p, i);
- type = packed_object_info_detail(p, offset, &size, &store_size,
+ type = typename(packed_object_info_detail(p, offset, &size, &store_size,
&delta_chain_length,
- base_sha1);
+ base_sha1));
if (!stat_only)
printf("%s ", sha1_to_hex(sha1));
if (!delta_chain_length) {