]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/gc: drop redundant local variable
authorPatrick Steinhardt <ps@pks.im>
Tue, 3 Jun 2025 14:01:10 +0000 (16:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 15:30:48 +0000 (08:30 -0700)
commitbd19b94a664ee6434a5f1b9d65f3d3ee70a9188c
tree5f67dc56265947535f8f2c39f8f66c80d6a05ab9
parent95b5039f5bda585b3872943e78cb8b136903aa5e
builtin/gc: drop redundant local variable

We have two different variables that track the quietness for git-gc(1):

  - The local variable `quiet`, which we wire up.

  - The `quiet` field of `struct maintenance_run_opts`.

This leads to confusion which of these variables should be used and what
the respective effect is.

Simplify this logic by dropping the local variable in favor of the
options field.

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