]> git.99rst.org Git - git.git/commit
entry: refactor how we remove items for delayed checkouts
authorPatrick Steinhardt <redacted>
Fri, 7 Jun 2024 06:38:20 +0000 (08:38 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
entry.c
git clone https://git.99rst.org/PROJECT