]> git.ipfire.org Git - thirdparty/git.git/commit
string-list: report programming error with BUG
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Aug 2025 22:04:17 +0000 (15:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Aug 2025 22:24:31 +0000 (15:24 -0700)
commit4f9c8d896397a1748132060d3465e8573c861633
treeea50ca61cae8307abd601f990debae4cdf72c7c9
parente813a0200a7121b97fec535f0d0b460b0a33356c
string-list: report programming error with BUG

Passing a string list that has .strdup_strings bit unset to
string_list_split(), or one that has .strdup_strings bit set to
string_list_split_in_place(), is a programmer error.  Do not use
die() to abort the execution.  Use BUG() instead.

As a developer-facing message, the message string itself should
be a lot more concise, but let's keep the original one for now.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
string-list.c