From: Junio C Hamano Date: Mon, 19 May 2025 15:15:26 GMT Subject: Re: [PATCH 10/13] hash-object: stop allowing unknown types Message-ID: In-Reply-To: <20250516045005.GJ22242@coredump.intra.peff.net> Jeff King writes: > We will retain the --literally flag, as it also instructs hash-object > not to worry about other format issues (e.g., type-specific things that > fsck would complain about). The documentation does not need to be > updated, as it was always vague about which checks we're loosening (it > uses only the phrase "any garbage"). ;-) > +test_expect_success '--literally complains about non-standard types' ' > + test_must_fail git hash-object -t bogus --literally --stdin > ' Yup, we obviously want to fail this now.