Re: [PATCH v2 7/7] string-list: split-then-remove-empty can be done while splitting
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Aug 1, 2025, 08:47 UTC
- Message-ID
- <aIx_Lp67GZC9fHaF@pks.im>
- In-Reply-To
- <20250731224607.3942417-8-gitster@pobox.com>
On Thu, Jul 31, 2025 at 03:46:06PM -0700, Junio C Hamano wrote:
> Thanks to the new STRING_LIST_SPLIT_NONEMPTY flag, a common pattern > to split a string into a string list and then remove empty items in > the resulting list is no longer needed. Instead, just tell the > string_list_split*() to omit empty ones while splitting.
Neat.
Patrick