]> git.99rst.org Git - git.git/commit
builtin/gc: inline config values specific to the "files" backend
authorPatrick Steinhardt <redacted>
Mon, 13 Jul 2026 05:52:09 +0000 (07:52 +0200)
committerJunio C Hamano <redacted>
Mon, 13 Jul 2026 15:13:16 +0000 (08:13 -0700)
commit57ca517baca6c28ed11e923ed7f25bb5c7af8909
tree78a8dfeb79a6767d7c15072a1c46f185aca8bef8
parent4d93bf9873696a33a9959c912e7a3fa4fb56a82b
builtin/gc: inline config values specific to the "files" backend

The `struct gc_config` contains a set of values that we read via the Git
repository's configuration. Several of those values that are consumed by
the object database optimization logic are inherently specific to the
"files" config.

In a later commit we'll make the logic to optimize object databases
pluggable. So by carrying these "files"-backend specific values in the
generic config struct means that other backends would have to worry
about these values, too. This feels somewhat dirty, as implementation-
specific details should live with the backends themselves.

Inline these values directly at the call sites that need them instead.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/gc.c
git clone https://git.99rst.org/PROJECT