Git development
 help / color / mirror / Atom feed
* [PATCH 00/12] Introduce pluggable commit graphs
@ 2026-11-16 13:07 Patrick Steinhardt
  2026-11-16 13:07 ` [PATCH 01/12] commit-graph: simplify linking commit graph chains Patrick Steinhardt
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Patrick Steinhardt @ 2026-11-16 13:07 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-16 20:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 13:07 [PATCH 00/12] Introduce pluggable commit graphs Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 01/12] commit-graph: simplify linking commit graph chains Patrick Steinhardt
2026-11-16 20:53   ` Junio C Hamano
2026-11-16 13:07 ` [PATCH 02/12] commit-graph: simplify reading a single commit graph Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 03/12] commit-graph: expose function to validate a commit graph chain Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 04/12] commit-graph: decide mergeable and chainable layers by depth Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 05/12] commit-graph: introduce common exit for `write_commit_graph_file()` Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 06/12] commit-graph: derive layer infos from the passed-in chain Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 07/12] commit-graph: split out check whether writing commit graphs is allowed Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 08/12] commit-graph: split out logic to write a new commit graph layer Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 09/12] commit-graph: mark incomplete commit graph chains Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 10/12] odb/source: make commit graphs pluggable Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 11/12] odb/source-files: move logic to derive commit graph paths Patrick Steinhardt
2026-11-16 13:07 ` [PATCH 12/12] odb/source-files: internalize " Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox