aboutsummaryrefslogtreecommitdiff
path: root/object-store.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-05-16 00:49:56 -0400
committerJunio C Hamano <gitster@pobox.com>2025-05-16 09:43:10 -0700
commitd2956385a9319155928e2d7bc5f9d90eeac5d0a5 (patch)
tree22ee5f9857db5ffdc46039d1277d16bb96015438 /object-store.c
parent4ae0e9423c95c63c17f66fb2de255c46dc14c4e5 (diff)
downloadgit-d2956385a9319155928e2d7bc5f9d90eeac5d0a5.tar.xz
oid_object_info(): drop type_name strbuf
We provide a mechanism for callers to get the object type as a raw string, rather than an object_type enum. This was in theory useful for returning types that are not representable in the enum, but we consider any such type to be an error, and there are no callers that use the strbuf anymore. Let's drop support to simplify the code a bit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.c')
-rw-r--r--object-store.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/object-store.c b/object-store.c
index b8f6955ea7..216c61dcf2 100644
--- a/object-store.c
+++ b/object-store.c
@@ -646,8 +646,6 @@ static int do_oid_object_info_extended(struct repository *r,
*(oi->disk_sizep) = 0;
if (oi->delta_base_oid)
oidclr(oi->delta_base_oid, the_repository->hash_algo);
- if (oi->type_name)
- strbuf_addstr(oi->type_name, type_name(co->type));
if (oi->contentp)
*oi->contentp = xmemdupz(co->buf, co->size);
oi->whence = OI_CACHED;