From: Patrick Steinhardt Date: Mon, 13 Jul 2026 05:52:03 GMT Subject: [PATCH v2 00/12] odb: make optimizations pluggable Message-ID: <20260713-b4-pks-odb-optimize-v2-0-9c2c3ee94b38@pks.im> In-Reply-To: <20260707-b4-pks-odb-optimize-v1-0-aae607667be4@pks.im> Hi, this patch series converts object housekeeping to become pluggable. There isn't really anything else to say about this. The series is built on top of f85a7e6620 (Start Git 2.56 cycle, 2026-07-06). Changes in v2: - Make tests in t7900 a bit more robust by not checking for exact commands, but instead by checking for executed tasks. - Link to v1: https://patch.msgid.link/20260707-b4-pks-odb-optimize-v1-0-aae607667be4@pks.im Thanks! Patrick --- Patrick Steinhardt (12): t7900: simplify how we check for maintenance tasks odb: run "pre-auto-gc" hook for all maintenance tasks builtin/gc: move worktree and rerere tasks before object optimizations builtin/gc: extract object database optimizations into separate function builtin/gc: make repack arguments self-contained builtin/gc: inline config values specific to the "files" backend builtin/gc: introduce object database optimization options builtin/gc: move geometric repacking into `odb_optimize()` builtin/gc: introduce `odb_optimize_required()` builtin/gc: refactor ODB optimizations to operate on "files" source builtin/gc: fix signedness issues in ODB-related functionality odb: make optimizations pluggable builtin/gc.c | 534 ++++++++----------------------------------------- odb.c | 12 ++ odb.h | 45 +++++ odb/source-files.c | 470 +++++++++++++++++++++++++++++++++++++++++++ odb/source-files.h | 15 ++ odb/source.h | 36 ++++ t/t7900-maintenance.sh | 338 +++++++++++++++++++++---------- 7 files changed, 894 insertions(+), 556 deletions(-) Range-diff versus v1: -: ---------- > 1: b05988c150 t7900: simplify how we check for maintenance tasks 1: df9ed71c10 ! 2: 734d3c6d17 odb: run "pre-auto-gc" hook for all maintenance tasks @@ t/t7900-maintenance.sh: test_expect_success 'geometric repacking honors configur + git maintenance run --auto 2>/dev/null && + + # The successful hook does not inhibit any of the tasks... -+ test_subcommand git reflog expire --all