Re: [PATCH v4 4/5] Add reftable library
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Feb 11, 2020, 23:40 UTC
- Message-ID
- <20200211234000.GA6464@camp.crustytoothpaste.net>
- In-Reply-To
- <CAFQ2z_P-nK4OSb-CWwm2Fqh=kc3H4PsHu6K8Zxh_HRW9_-Z2yQ@mail.gmail.com>
On 2020-02-11 at 16:40:56, Han-Wen Nienhuys wrote:
Show 5 quoted lines
> I can see a future where we have a different format that allows for > more metadata so we can encode the hash size separately. But maybe > that can be for format v3 and up. > > Let's do format v2 = format v1 but with 32-byte hashes.
The way we've preferred to do this in Git is to write a four-byte hash identifier into the file, but we have legacy concerns here, so I think switching to v2 for SHA-256 is fine.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204