aboutsummaryrefslogtreecommitdiff
path: root/reftable/block.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-04-08 14:16:26 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-15 10:36:09 -0700
commit3122d44025e29571aecda02fe3699f240246f3b2 (patch)
tree8374470321115d8b6c81c44086bcab6b10cc829b /reftable/block.c
parent8f7582d995682f785e80e344197cc715e6bc7d8e (diff)
downloadgit-3122d44025e29571aecda02fe3699f240246f3b2.tar.xz
reftable/block: rename `block_reader_start()`
The function `block_reader_start()` does not really apply to the block reader, but to the block iterator. It's name is thus somewhat confusing. Rename it to `block_iter_seek_start()` to clarify. We will rename `block_reader_seek()` in similar spirit in the next commit. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/block.c')
-rw-r--r--reftable/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/block.c b/reftable/block.c
index 298e8c56b9..53ea92d04e 100644
--- a/reftable/block.c
+++ b/reftable/block.c
@@ -266,7 +266,7 @@ static uint32_t block_reader_restart_offset(struct block_reader *br, int i)
return get_be24(br->restart_bytes + 3 * i);
}
-void block_reader_start(struct block_reader *br, struct block_iter *it)
+void block_iter_seek_start(struct block_iter *it, struct block_reader *br)
{
it->br = br;
strbuf_reset(&it->last_key);