]> git.99rst.org Git - git.git/commit
builtin/gc: refactor ODB optimizations to operate on "files" source
authorPatrick Steinhardt <redacted>
Mon, 13 Jul 2026 05:52:13 +0000 (07:52 +0200)
committerJunio C Hamano <redacted>
Mon, 13 Jul 2026 15:13:17 +0000 (08:13 -0700)
commit0a778894b9676a1e93870589851731dad05e086a
tree71bee33dc8193ec6dffb9968d7b57dce200d16ea
parent841ca632be7ad515c4e8f0d5b4ab2cba7454f402
builtin/gc: refactor ODB optimizations to operate on "files" source

We have a couple of functions that are implementation details of how the
"files" object database source performs optimizations. These functions
often use global state like `the_repository` and implicitly derive the
source they are supposed to optimize.

Refactor these interfaces to accept a "files" source directly. This will
make it easier to move around the whole logic into "odb/source-files.c"
in a subsequent step.

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