[PATCH 0/9] commit-graph: remove reliance on global state
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Aug 4, 2025, 08:17 UTC
- Message-ID
- <20250804-b4-pks-commit-graph-wo-the-repository-v1-0-850d626eb2e8@pks.im>
Hi,
this patch series is another step on our long road towards not having global state. In addition to that, as commit-graphs are part of the object database layer, this is also another step towards pluggable object databases.
Thanks!
Patrick
---
Patrick Steinhardt (9):
trace2: introduce function to trace unsigned integers
commit-graph: stop using signed integers to count bloom filters
commit-graph: fix type for some write options
commit-graph: fix sign comparison warnings
commit-graph: stop using `the_hash_algo` via macros
commit-graph: store the hash algorithm instead of its length
commit-graph: stop using `the_hash_algo`
commit-graph: stop using `the_repository`
commit-graph: stop passing in redundant repositorybuiltin/commit-graph.c | 13 +- builtin/commit.c | 2 +- builtin/merge.c | 2 +- commit-graph.c | 366 +++++++++++++++++++++---------------------- commit-graph.h | 24 +-- oss-fuzz/fuzz-commit-graph.c | 4 +- t/helper/test-read-graph.c | 2 +- trace2.c | 14 ++ trace2.h | 9 ++ 9 files changed, 226 insertions(+), 210 deletions(-)
--- base-commit: e813a0200a7121b97fec535f0d0b460b0a33356c change-id: 20250717-b4-pks-commit-graph-wo-the-repository-1dc2cacbc8e3