]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: use string_list_split() in mark_remotes_as_accepted()
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Sep 2025 05:30:53 +0000 (07:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Sep 2025 17:30:56 +0000 (10:30 -0700)
commit68a746e9a892f8afa910cdf5c5360dae69193599
tree291dbb7dadfd7f9dd648dc895cd8d9c0f9053280
parentc213820c512dc0a5cfe11a075e41f789f3225923
promisor-remote: use string_list_split() in mark_remotes_as_accepted()

Previous commits replaced some strbuf_split*() calls with calls to
string_list_split*() in "promisor-remote.c".

For consistency, let's also replace the strbuf_split_str() call in
mark_remotes_as_accepted() with a call to string_list_split(), as we
don't need the splitted strings to be managed by a `struct strbuf`.
Using the lighter-weight `string_list` API is enough for our needs.

While at it let's remove a useless call to `strbuf_strip_suffix()`.

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