]> git.ipfire.org Git - thirdparty/git.git/commit
clean: do not pass the whole structure when it is not necessary
authorJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2025 05:42:29 +0000 (22:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2025 05:42:29 +0000 (22:42 -0700)
commit4985f72ea5133441c2e9ba808bdea861a2d9f042
treeeef91003c3f538dac10bbf734e3d829befbabc26
parent7a4acc360782c9eb0e53f51a5cf3147fa88f973e
clean: do not pass the whole structure when it is not necessary

The callee parse_choice() only needs to access a NUL-terminated
string; instead of insisting to take a pointer to a strbuf, just
take a pointer to a character array.

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