gc: simplify maintenance_task_pack_refs()
commitb004c9028270832aec73746fdddd5c7bce8dbe84
authorRené Scharfe <l.s.r@web.de>
Tue, 4 Oct 2022 16:17:39 +0000 (4 18:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Oct 2022 19:46:27 +0000 (5 12:46 -0700)
tree23e4976cec6d26f3d4551a27ce234634dd0880e4
parent3dcec76d9df911ed8321007b1d197c1a206dc164
gc: simplify maintenance_task_pack_refs()

Pass a constant string array directly to run_command_v_opt() instead of
copying it into a strvec first.  This shortens the code and avoids heap
allocations.

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