]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/block: expose a generic iterator over reftable records
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Apr 2025 13:16:24 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:53:12 +0000 (14:53 -0700)
commit50d845947734f45970439518047ab1f79628bb7e
treecbb5b4c6dbf3de67d7f2aed6ecee5a3d7961cbfb
parent6da48a5e00ae77c4092e78ac8ac8641a90660343
reftable/block: expose a generic iterator over reftable records

Expose a generic iterator over reftable records and expose it via the
public interface. Together with an upcoming iterator for reftable blocks
contained in a table this will allow users to trivially iterate through
blocks and their respective records individually.

This functionality will be used to implement consistency checks for the
reftable backend, which requires more fine-grained control over how we
read data.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/block.c
reftable/block.h
reftable/reftable-block.h
t/unit-tests/t-reftable-block.c