]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/reader: rename data structure to "table"
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Apr 2025 13:16:14 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:53:09 +0000 (14:53 -0700)
commitb648bd654947db06e5549d724f46d3660ac11e19
tree2b730c83c04b42385a489113d5e6f9a565beadfa
parent6dcc05ffc3ead0745d19decd0e8ecd65edc9d414
reftable/reader: rename data structure to "table"

The `struct reftable_reader` subsystem encapsulates a table that has
been read from the disk. As such, the current name of that structure is
somewhat hard to understand as it only talks about the fact that we read
something from disk, without really giving an indicator _what_ that is.

Furthermore, this naming schema doesn't really fit well into how the
other structures are named: `reftable_merged_table`, `reftable_stack`,
`reftable_block` and `reftable_record` are all named after what they
encapsulate.

Rename the subsystem to `reftable_table`, which directly gives a hint
that the data structure is about handling the individual tables part of
the stack.

While this change results in a lot of churn, it prepares for us exposing
the APIs to third-party callers now that the reftable library is a
standalone library that can be linked against by other projects.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 files changed:
Makefile
meson.build
reftable/iter.c
reftable/iter.h
reftable/merged.c
reftable/merged.h
reftable/reftable-merged.h
reftable/reftable-reader.h [deleted file]
reftable/reftable-table.h [new file with mode: 0644]
reftable/stack.c
reftable/stack.h
reftable/table.c [moved from reftable/reader.c with 73% similarity]
reftable/table.h [moved from reftable/reader.h with 65% similarity]
t/helper/test-reftable.c
t/meson.build
t/unit-tests/t-reftable-merged.c
t/unit-tests/t-reftable-readwrite.c
t/unit-tests/t-reftable-stack.c
t/unit-tests/t-reftable-table.c [moved from t/unit-tests/t-reftable-reader.c with 78% similarity]