]> git.ipfire.org Git - thirdparty/git.git/commit
clean: do not use strbuf_split*() [part 2]
authorJunio C Hamano <gitster@pobox.com>
Thu, 31 Jul 2025 22:54:26 +0000 (15:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2025 05:44:57 +0000 (22:44 -0700)
commit4f60672f6f7cbc61fb704c993c54187860f1e9c8
treeb90db6fbabf96ded4c2b8591ef2bd7a6dc41377d
parent4985f72ea5133441c2e9ba808bdea861a2d9f042
clean: do not use strbuf_split*() [part 2]

builtin/clean.c:filter_by_patterns_cmd() interactively reads a line
that has exclude patterns from the user and splits the line into a
list of patterns.  It uses the strbuf_split() so that each split
piece can then trimmed.

There is no need to use strbuf anymore, thanks to the recent
enhancement to string_list_split*() family that allows us to trim
the pieces split into a string_list.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c