]> Kevux Git Server - rit/commit
reftable/constants: make block types part of the public interface
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Apr 2025 13:16:27 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:53:12 +0000 (14:53 -0700)
commit0f8ee94b636b5ab183c62b8fdd26c1611c2b86f4
treef3ed1d8ee3bd25f328a265e4f98a4d92fafa7dc6
parentda89659365181045b13df924de668764abf59444
reftable/constants: make block types part of the public interface

Now that reftable blocks can be read individually via the public
interface it becomes necessary for callers to be able to distinguish the
different types of blocks. Expose the relevant constants.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
reftable/block.c
reftable/constants.h
reftable/iter.c
reftable/merged.c
reftable/record.c
reftable/reftable-constants.h [new file with mode: 0644]
reftable/stack.c
reftable/table.c
reftable/writer.c
t/unit-tests/t-reftable-block.c
t/unit-tests/t-reftable-merged.c
t/unit-tests/t-reftable-pq.c
t/unit-tests/t-reftable-record.c
t/unit-tests/t-reftable-table.c