]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: (de)serialization for the polymorphic record type.
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 7 Oct 2021 20:25:02 +0000 (20:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 17:45:48 +0000 (10:45 -0700)
commite303bf22f9ac1a3bf0cb384ecd925570e014a3f3
tree33c5d87321c1da7e6b8eaf175e4c702997a8a3f2
parent1214aa841bc825c97541a68f397227cb2bfd3f3c
reftable: (de)serialization for the polymorphic record type.

The reftable format is structured as a sequence of blocks, and each block
contains a sequence of prefix-compressed key-value records. There are 4 types of
records, and they have similarities in how they must be handled. This is
achieved by introducing a polymorphic 'record' type that encapsulates ref, log,
index and object records.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
reftable/constants.h [new file with mode: 0644]
reftable/record.c [new file with mode: 0644]
reftable/record.h [new file with mode: 0644]
reftable/record_test.c [new file with mode: 0644]
reftable/reftable-record.h [new file with mode: 0644]
t/helper/test-reftable.c