Thread (295 messages) 295 messages, 13 authors, 2020-07-31

Re: [PATCH v4 4/5] Add reftable library

From: Han-Wen Nienhuys <hidden>
Date: 2020-02-11 14:20:32

On Tue, Feb 11, 2020 at 1:05 AM brian m. carlson
[off-list ref] wrote:
quoted
As this is within the library, the hash size should be injected
somewhere. I don't see huge problems here (the hash size could be part
of the 'struct write_options'), but until we have properly defined how
reftable will mark the on-disk files as SHA-256, it will only supports
SHA1. I intend to work set the file format in motion, once this SHA1
version is accepted into git-core.
It's not required to mark the on-disk files.  A repository's storage is
either entirely SHA-1 or entirely SHA-256, except for the translation
tables.  The entire marking of the repository is in the config file, and
everything in the .git directory is assumed to be in that format.
I disagree. I think it should be possible to determine if a file in
reftable format is well-formed or not. Since parsing requires knowing
the hash size, we have to encode it somewhere.

I've uploaded https://git.eclipse.org/r/c/157501/ that proposes a way
to encode the hash size. I  look forward to feedback.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help