From: Patrick Steinhardt Date: Mon, 16 Nov 2026 13:07:36 GMT Subject: [PATCH 00/12] Introduce pluggable commit graphs Message-ID: <20261116-pks-odb-pluggable-commit-graphs-v1-0-a83fc1ff0808@pks.im> Hi, this patch series introduces pluggable commit graphs such that an object database backend is in full control over where exactly the commit graph is being read from or written to. An alternative form of this would have been to abstract the overall functionality of a commit graph and instead expose its functionality. But that would have been a much larger undertaking, so for now I decided to go the easier step and retain the data structure itself. But that does not preclude a subsequent step eventually to abstract the data structure even further if we ever wanted to. Meanwhile, with this change all logic to derive storage paths for commit graphs moves into the "files" backend. This series is built on fbd2d1e765d (The 18th batch, 2026-11-09) with ps/commit-graph-write-refactor at a9993c1000d (commit-graph: modernize function names, 2026-11-04) merged into it. Thanks! Patrick --- Patrick Steinhardt (12): commit-graph: simplify linking commit graph chains commit-graph: simplify reading a single commit graph commit-graph: expose function to validate a commit graph chain commit-graph: decide mergeable and chainable layers by depth commit-graph: introduce common exit for `write_commit_graph_file()` commit-graph: derive layer infos from the passed-in chain commit-graph: split out check whether writing commit graphs is allowed commit-graph: split out logic to write a new commit graph layer commit-graph: mark incomplete commit graph chains odb/source: make commit graphs pluggable odb/source-files: move logic to derive commit graph paths odb/source-files: internalize logic to derive commit graph paths builtin/commit-graph.c | 87 ++++--- builtin/fetch.c | 4 +- builtin/gc.c | 3 +- commit-graph.c | 585 +++++++-------------------------------------- commit-graph.h | 74 +++--- odb.c | 6 + odb.h | 10 + odb/source-files.c | 478 ++++++++++++++++++++++++++++++++++++ odb/source-files.h | 12 + odb/source.h | 52 ++++ t/helper/test-read-graph.c | 3 +- 11 files changed, 740 insertions(+), 574 deletions(-) --- base-commit: 0c2ef2cc2023eab2fe8bc54d542fe4f93314f186 change-id: 20261110-pks-odb-pluggable-commit-graphs-e9dc9674f0ae