]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/blocksource: drop malloc block source
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2024 14:12:29 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Aug 2024 15:04:46 +0000 (08:04 -0700)
commitafdafade1acc9f59d11a453aa9c974fcb327830f
treecb3c89deced55fb11daaf70ee02dbf9ebb51f465
parentf975a3a38c060b14370c10fddef94d49e00593da
reftable/blocksource: drop malloc block source

The reftable blocksource provides a generic interface to read blocks via
different sources, e.g. from disk or from memory. One of the block
sources is the malloc block source, which can in theory read data from
memory. We nowadays also have a strbuf block source though, which
provides essentially the same functionality with better ergonomics.

Adapt the only remaining user of the malloc block source in our tests
to use the strbuf block source, instead, and remove the now-unused
malloc block source.

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