Re: [PATCH v3 2/3] t/: port helper/test-sha1.c to unit-tests/t-hash.c
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 17, 2024, 17:44 UTC
- Message-ID
- <xmqqr0cva2gb.fsf@gitster.g>
- In-Reply-To
- <20240616045259.GA17750@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> So no, git-hash-object can't be used to test this. You have to directly > hash some contents with sha1, and I don't think there is any way to do > that with regular Git commands. > > So I think we need to keep some mechanism for computing the sha1 of > arbitrary contents.
You're right. We'd need a separate test helper if we wanted to keep using the shattered sample files as-is (which we do).
Thanks.