]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: introduce `reftable_strdup()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 2 Oct 2024 10:55:30 +0000 (12:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:53:51 +0000 (07:53 -0700)
commit7f0969febf974f017b92e7152a17c98105583167
tree0895b55445927f523398528c8c152d2564652317
parenta5a15a4514f45c4ba8e901675951bfe551d77fae
reftable: introduce `reftable_strdup()`

The reftable library provides the ability to swap out allocators. There
is a gap here though, because we continue to use `xstrdup()` even in the
case where all the other allocators have been swapped out.

Introduce `reftable_strdup()` that uses `reftable_malloc()` to do the
allocation.

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