submodule: use strvec_pushf() for --submodule-prefix
commit9a97b43e035e0770d5bbe1b0afe1c5e80eb05f99
authorRené Scharfe <l.s.r@web.de>
Sun, 25 Feb 2024 18:24:39 +0000 (25 19:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Feb 2024 17:45:57 +0000 (26 09:45 -0800)
treebca0876d5c8aad39545dad519321bf1216489c69
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
submodule: use strvec_pushf() for --submodule-prefix

Add the option --submodule-prefix and its argument directly using
strvec_pushf() instead of via a detour through a strbuf.  This is
shorter, easier to read and doesn't require any explicit cleanup
afterwards.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c