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

The `reftable_block` structure associates a byte slice with a block
source. As such it only holds the data of a reftable block without
actually encoding any of the details for how to access that data.

Rename the structure to instead be called `reftable_block_data`. Besides
clarifying that this really only holds data, it also allows us to rename
the `reftable_block_reader` to `reftable_block` in the next commit, as
this is the structure that actually encapsulates access to the reftable
blocks.

Rename the `struct reftable_block_reader::block` member accordingly.

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