]> git.ipfire.org Git - thirdparty/git.git/commit
strvec: introduce new `strvec_splice()` function
authorPatrick Steinhardt <ps@pks.im>
Wed, 20 Nov 2024 13:39:38 +0000 (14:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2024 23:23:42 +0000 (08:23 +0900)
commit3f5fadef3718f0ada963aeb25be70c8ba71b5c7c
tree07f9f131ae73d94429cd0ddf6024ce0a39f1e645
parent141766d1bb801ae2a9c7358920ce8dc9697f53c4
strvec: introduce new `strvec_splice()` function

Introduce a new `strvec_splice()` function that can replace a range of
strings in the vector with another array of strings. This function will
be used in subsequent commits.

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