]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/reader: inline `init_reader()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2024 14:12:37 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Aug 2024 15:04:46 +0000 (08:04 -0700)
commit2de3c0d34555685a0502e81a37436a7db41a2ddf
tree88c8e9793c241732e933c7bff9d00b579876f572
parenta0218203cdbcc4feb494074ec3d95c7c52670d09
reftable/reader: inline `init_reader()`

Most users use an allocated version of the `reftable_reader`, except for
some tests. We are about to convert the reader to become refcounted
though, and providing the ability to keep a reader on the stack makes
this conversion harder than necessary.

Update the tests to use `reftable_reader_new()` instead to prepare for
this change.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/reader.c
reftable/reader.h
reftable/readwrite_test.c