]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: use string_list_split() in filter_promisor_remote()
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Sep 2025 05:30:51 +0000 (07:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Sep 2025 17:30:55 +0000 (10:30 -0700)
commitbcb08c837570f24a82d6484fc5f475372820e3f3
tree6773d22d2a7d17144e47d7c4f9020bf548e15063
parentde1efeaf0cee5ca8947ead8b83235e84652c657f
promisor-remote: use string_list_split() in filter_promisor_remote()

A previous commit introduced a new parse_one_advertised_remote()
function that takes a `const char *` argument. This function is called
from filter_promisor_remote() and parses all the fields for one remote.

This means that in filter_promisor_remote() we no longer need to split
the remote information that will be passed to
parse_one_advertised_remote() into an array of relatively heavy and
complex `struct strbuf`.

To use something lighter, let's then replace strbuf_split_str() with
string_list_split() in filter_promisor_remote() to parse the remote
information that is passed to parse_one_advertised_remote().

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c