Re: [PATCH v3 2/2] list-objects-filter-options: avoid strbuf_split_str()
On Wed, Mar 11, 2026 at 05:33:36PM +0000, Deveshi Dwivedi wrote:
Show 14 quoted lines
> + 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.
-Peff