midx: use strvec_pushf() for pack-objects base name
commit4d45e79e115ef3259179032367cb84d08198c6c5
authorRené Scharfe <l.s.r@web.de>
Sun, 24 Mar 2024 16:40:00 +0000 (24 17:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 19:03:27 +0000 (25 12:03 -0700)
treebfa9e30688a0011ac49fe24b319d89303af5a5a6
parent11c821f2f2a31e70fb5cc449f9a29401c333aad2
midx: use strvec_pushf() for pack-objects base name

Build the pack base name argument directly using strvec_pushf() instead
of with an intermediate strbuf.  This is shorter, simpler and avoids the
need for explicit cleanup.

Signed-off-by: René Scharfe <l.s.r@web.de>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c