]> Kevux Git Server - rit/commit
hook: move unsorted_string_list_remove() to string-list.[ch]
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 25 Mar 2026 19:54:52 +0000 (21:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2026 21:00:45 +0000 (14:00 -0700)
commitadd3564d2f2804ad37b9af773ec6420b497a1725
tree2637f0fe3da8c03b33cd7071c6324655038dc4ae
parent83677335aea701658b4377ce09b9fe586fad1620
hook: move unsorted_string_list_remove() to string-list.[ch]

Move the convenience wrapper from hook to string-list since
it's a more suitable place. Add a doc comment to the header.

Also add a free_util arg to make the function more generic
and make the API similar to other functions in string-list.h.
Update the existing call-sites.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hook.c
string-list.c
string-list.h