]> git.ipfire.org Git - thirdparty/git.git/commit
odb: make optimizations pluggable
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 Jul 2026 05:52:15 +0000 (07:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jul 2026 15:13:17 +0000 (08:13 -0700)
commit56f3fc9520a52a43aef2cabaf30b71a79c9eca57
treef66b7aee36441664d9eb000a6c05bb47735b47d1
parent7534d456816d49f20716e49900d43cedb02e8c42
odb: make optimizations pluggable

Move `odb_optimize()` and `odb_optimize_required()` from "builtin/gc.c"
into the "files" source and wire them up via newly introduced vtable
pointers for the object database sources. This makes the logic pluggable
and thus allows other backends to have their own, custom implementation.

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