diff options
| author | Jeff King <peff@peff.net> | 2025-05-16 00:49:45 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-16 09:43:10 -0700 |
| commit | ae24b032a04ccd1565cb1ce13317b56daa77ce7f (patch) | |
| tree | fc7b0a0a277282ee277e95dc2ab5452dc8f92612 /object-store.h | |
| parent | cat-file: make --allow-unknown-type a noop (diff) | |
| download | git-ae24b032a04ccd1565cb1ce13317b56daa77ce7f.tar.gz git-ae24b032a04ccd1565cb1ce13317b56daa77ce7f.zip | |
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>
Diffstat (limited to 'object-store.h')
| -rw-r--r-- | object-store.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/object-store.h b/object-store.h index c2fe5a1960..cf908fe68e 100644 --- a/object-store.h +++ b/object-store.h @@ -240,8 +240,6 @@ struct object_info { /* Invoke lookup_replace_object() on the given hash */ #define OBJECT_INFO_LOOKUP_REPLACE 1 -/* Allow reading from a loose object file of unknown/bogus type */ -#define OBJECT_INFO_ALLOW_UNKNOWN_TYPE 2 /* Do not retry packed storage after checking packed and loose storage */ #define OBJECT_INFO_QUICK 8 /* |
