]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/writer: handle allocation failures in `reftable_new_writer()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 2 Oct 2024 10:55:48 +0000 (12:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:53:52 +0000 (07:53 -0700)
commit74d1c18757d1a45b95e46836adf478193a34c42c
treef22d6b124adedd5b978c07e4792b0609fef9c27b
parentb680af2dba27f851d3cea2000094a1dc42f38cd2
reftable/writer: handle allocation failures in `reftable_new_writer()`

Handle allocation failures in `reftable_new_writer()`. Adapt the
function to return an error code to return such failures. While at it,
rename it to match our code style as we have to touch up every callsite
anyway.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/reftable-writer.h
reftable/stack.c
reftable/writer.c
t/unit-tests/lib-reftable.c