]> git.ipfire.org Git - thirdparty/git.git/commit
entry: refactor how we remove items for delayed checkouts
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:38:20 +0000 (08:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:51 +0000 (10:30 -0700)
commitb31607a3e03b2002c468c16bb71fcaf2d1846e09
tree6d3efa2cc7708aee70e96c03fa02ccc280d42de8
parent394affd46dc9b0c805df6e999837aa297f844fc0
entry: refactor how we remove items for delayed checkouts

When finalizing a delayed checkout, we sort out several strings from the
passed-in string list by first assigning the empty string to those
filters and then calling `string_list_remove_empty_items()`. Assigning
the empty string will cause compiler warnings though as the string is
a `char *` once we enable `-Wwrite-strings`.

Refactor the code to use a `NULL` pointer with `filter_string_list()`
instead to avoid this warning.

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