]> git.ipfire.org Git - thirdparty/git.git/commit
oid_object_info(): drop type_name strbuf
authorJeff King <peff@peff.net>
Fri, 16 May 2025 04:49:56 +0000 (00:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2025 16:43:10 +0000 (09:43 -0700)
commitd2956385a9319155928e2d7bc5f9d90eeac5d0a5
tree22ee5f9857db5ffdc46039d1277d16bb96015438
parent4ae0e9423c95c63c17f66fb2de255c46dc14c4e5
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>
object-file.c
object-store.c
object-store.h
packfile.c