]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: drop OBJECT_INFO_ALLOW_UNKNOWN_TYPE flag
authorJeff King <peff@peff.net>
Fri, 16 May 2025 04:49:45 +0000 (00:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2025 16:43:10 +0000 (09:43 -0700)
commitae24b032a04ccd1565cb1ce13317b56daa77ce7f
treefc7b0a0a277282ee277e95dc2ab5452dc8f92612
parentf227fc7d43d9607edb286eaab0f7714a2f1e4659
object-file: drop OBJECT_INFO_ALLOW_UNKNOWN_TYPE flag

Since cat-file dropped its "--allow-unknown-type" option in the previous
commit, there are no more uses of the internal flag that implemented it.
Let's drop it.

That in turn lets us drop the strbuf parameter of unpack_loose_header(),
which now is always NULL. And without that, we can drop all of the
additional code to inflate larger headers into the strbuf.

Arguably we could drop ULHR_TOO_LONG, as no callers really care about
the distinction from ULHR_BAD. But it's easy enough to retain, and it
does let us produce a slightly more specific message in one instance.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h
object-store.h
streaming.c