Re: [PATCH 1/3] show-index: implement automatic hash detection
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Jan 23, 2026, 20:29 UTC
- Message-ID
- <aXPaHWV62HEfHyy_@fruit.crustytoothpaste.net>
- In-Reply-To
- <aXCJp_rGPetsXE8J@pks.im>
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