]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/maintenance: improve readability of strategies
authorPatrick Steinhardt <ps@pks.im>
Fri, 24 Oct 2025 06:57:19 +0000 (08:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Oct 2025 20:42:44 +0000 (13:42 -0700)
commite83e92e87672def24d971cdfef801bb0de0d5955
tree462eb9fb131be6214d5c256a364552d967f7ffc4
parentd465be2327d934f3506d412cc4f4067baba0d1c5
builtin/maintenance: improve readability of strategies

Our maintenance strategies are essentially a large array of structures,
where each of the tasks can be enabled and scheduled individually. With
the current layout though all the configuration sits on the same nesting
layer, which makes it a bit hard to discern which initialized fields
belong to what task.

Improve readability of the individual tasks by using nested designated
initializers instead.

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