]> git.99rst.org Git - git.git/commit
gc: simplify maintenance_task_pack_refs()
authorRené Scharfe <redacted>
Tue, 4 Oct 2022 16:17:39 +0000 (18:17 +0200)
committerJunio C Hamano <redacted>
Wed, 5 Oct 2022 19:46:27 +0000 (12:46 -0700)
commitb004c9028270832aec73746fdddd5c7bce8dbe84
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/gc.c
git clone https://git.99rst.org/PROJECT