Re: [PATCH v3 2/2] list-objects-filter-options: avoid strbuf_split_str()
Jeff King <peff@peff.net> writes:
Show 20 quoted lines
> On Wed, Mar 11, 2026 at 05:33:36PM +0000, Deveshi Dwivedi wrote:
>
>> + while (*p && !result) {
>> + const char *end = strchrnul(p, '+');
>> +
>> + strbuf_reset(&sub);
>> + strbuf_add(&sub, p, end - p);
>> +
>> + if (sub.len)
>> + result = parse_combine_subfilter(filter_options, sub.buf, errbuf);
>> +
>> + if (!*end)
>> + break;
>> + p = end + 1;
>> }
>> + strbuf_release(&sub);
>
> This version of the loop looks good to me.
>
> -PeffThanks, both. Will queue.