diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-07 15:16:19 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:53:10 -0700 |
| commit | 12a9aa8cb76c120bca7609ac7ae57929d52605e9 (patch) | |
| tree | 6d412c2e5108d81e5d3af6e0535781c007364fb8 /reftable/iter.h | |
| parent | 2b3362c10d39efe09fe9ef16122df3bed5149032 (diff) | |
| download | git-12a9aa8cb76c120bca7609ac7ae57929d52605e9.tar.gz | |
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>
Diffstat (limited to 'reftable/iter.h')
| -rw-r--r-- | reftable/iter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/iter.h b/reftable/iter.h index add5c9472f..cc920970a5 100644 --- a/reftable/iter.h +++ b/reftable/iter.h @@ -68,7 +68,7 @@ struct indexed_table_ref_iter { /* Points to the next offset to read. */ int offset_idx; int offset_len; - struct block_reader block_reader; + struct reftable_block block; struct block_iter cur; int is_finished; }; |
