aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-05-16 00:49:47 -0400
committerJunio C Hamano <gitster@pobox.com>2025-05-16 09:43:10 -0700
commitaac2abeca7077aa5f87f4132b98d37dd938b3573 (patch)
tree56beec1c1092a866dfb13ce869e278be27c002ee /object-file.c
parentobject-file: drop OBJECT_INFO_ALLOW_UNKNOWN_TYPE flag (diff)
downloadgit-aac2abeca7077aa5f87f4132b98d37dd938b3573.tar.gz
git-aac2abeca7077aa5f87f4132b98d37dd938b3573.zip
cat-file: use type enum instead of buffer for -t option
Now that we no longer support OBJECT_INFO_ALLOW_UNKNOWN_TYPE, there is no need to pass a strbuf into oid_object_info_extended() to record the type. The regular object_type enum is sufficient to capture all of the types we will allow. This simplifies the code a bit, and will eventually let us drop object_info's type_name strbuf support. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
0 files changed, 0 insertions, 0 deletions