]> Kevux Git Server - rit/commit
string-list: optionally trim string pieces split by string_list_split*()
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Aug 2025 22:04:20 +0000 (15:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2025 05:34:32 +0000 (22:34 -0700)
commit576454974165d51b7e39c0608cde1c84978f1a8a
tree33b3ea4c05ae843ffeaa4a5f9bb2e66b6398a5e5
parent527535fcdd2d9dec56877435f609852d0f2bf163
string-list: optionally trim string pieces split by string_list_split*()

Teach the unified split_string() to take an optional "flags" word,
and define the first flag STRING_LIST_SPLIT_TRIM to cause the split
pieces to be trimmed before they are placed in the string list.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
string-list.c
string-list.h
t/unit-tests/u-string-list.c