summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Han-Wen Nienhuys <hanwen@google.com>2021-10-07 20:25:04 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-08 10:45:48 -0700
commite581fd72319adcf378c97e19262dd4f46c7fbe07 (patch)
treecf393002216ab02760812f5c09117f48148740b2 /t/helper
parentProvide zlib's uncompress2 from compat/zlib-compat.c (diff)
downloadtgif-e581fd72319adcf378c97e19262dd4f46c7fbe07.tar.xz
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>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-reftable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-reftable.c b/t/helper/test-reftable.c
index 09d4b83ef9..c9deeaf08c 100644
--- a/t/helper/test-reftable.c
+++ b/t/helper/test-reftable.c
@@ -4,6 +4,7 @@
int cmd__reftable(int argc, const char **argv)
{
basics_test_main(argc, argv);
+ block_test_main(argc, argv);
record_test_main(argc, argv);
return 0;
}