Expand description
Serialize Git commit-graph v1 files with GDA2 + optional Bloom chunks (commit-graph.c compatible).
Structs§
- Bloom
Write Stats - Counters emitted as
GIT_TRACE2_EVENTfor Bloom generation (commit-graph.c). - Commit
Graph Commit Info - Per-commit data needed to write CDAT / Bloom.
Functions§
- build_
commit_ graph_ bytes - Build raw commit-graph bytes (without touching the filesystem).
- collect_
reachable_ commit_ oids - Collect reachable commit OIDs from ref tips (same strategy as existing grit commit-graph).
- count_
referenced_ commit_ tips - Count unique commit OIDs that refs point to directly (peeling annotated tags), matching Git’s
add_ref_to_setaccounting for the “Collecting referenced commits” progress meter. Unlikecollect_reachable_commit_oids, this does not walk commit parents. - load_
commit_ graph_ commit_ info - Load commit metadata from the ODB for graph writing.