Subject: Re: [PATCH 1/3] show-index: implement automatic hash detection

From: "brian m. carlson" <[email-masked]>
Date: Fri, 23 Jan 2026 20:29:17 +0000

On 2026-01-21 at 08:09:11, Patrick Steinhardt wrote:
> I think if we wanted to fix properly this we should rather introduce
> index v5 with a header that encodes the hash used by it. Like that we
> wouldn't have to guess anymore. Whether the hassle is worth it might be
> a different question though.

Index v3, which will be used during interoperability, will encode the
hash algorithm and can be used for single-hash implementations as well
as multi-hash implementations.

There's an implementation in my `sha256-interop` branch at
https://github.com/bk2204/git.git and we could simply enable it by
default at some point in the future.
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA