]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/gc: remove global variables where it is trivial to do
authorPatrick Steinhardt <ps@pks.im>
Wed, 7 May 2025 07:21:38 +0000 (09:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2025 17:50:13 +0000 (10:50 -0700)
commite3a69d72b1e48b85f9dad8139797a6fe50d4059d
treea12ab5cbecd13c3937dab70f4729566d7df129e3
parent58f62837fb42fe602ceaea50f4666d98e278acbe
builtin/gc: remove global variables where it is trivial to do

We use a couple of global variables to assemble command line arguments
for subprocesses we execute in git-gc(1). All of these variables except
the one for git-repack(1) are only used in a single place though, so
they don't really add anything but confusion.

Remove those variables.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c