]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/block: rename `block_reader` to `reftable_block`
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Apr 2025 13:16:19 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:53:10 +0000 (14:53 -0700)
commit12a9aa8cb76c120bca7609ac7ae57929d52605e9
tree6d412c2e5108d81e5d3af6e0535781c007364fb8
parent2b3362c10d39efe09fe9ef16122df3bed5149032
reftable/block: rename `block_reader` to `reftable_block`

The `block_reader` structure is used to access parsed data of a reftable
block. The structure is currently treated as an internal implementation
detail and not exposed via our public interfaces. The functionality
provided by the structure is useful to external users of the reftable
library though, for example when implementing consistency checks that
need to scan through the blocks manually.

Rename the structure to `reftable_block` now that the name has been made
available in the preceding commit. This name is in line with the naming
schema used for other data structures like `reftable_table` in that it
describes the underlying entity that it provides access to.

The new data structure isn't yet exposed via the public interface, which
is left for a subsequent commit.

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