]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: reading/writing blocks
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 7 Oct 2021 20:25:04 +0000 (20:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 17:45:48 +0000 (10:45 -0700)
commite581fd72319adcf378c97e19262dd4f46c7fbe07
treecf393002216ab02760812f5c09117f48148740b2
parenta322920d0bb8a930c17dd824990f7e5fd026bb3f
reftable: reading/writing blocks

The reftable format is structured as a sequence of block. Within a block,
records are prefix compressed, with an index of offsets for fully expand keys to
enable binary search within blocks.

This commit provides the logic to read and write these blocks.

Helped-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
reftable/block.c [new file with mode: 0644]
reftable/block.h [new file with mode: 0644]
reftable/block_test.c [new file with mode: 0644]
t/helper/test-reftable.c