Skip to main content

Module commit_graph_write

Module commit_graph_write 

Source
Expand description

Serialize Git commit-graph v1 files with GDA2 + optional Bloom chunks (commit-graph.c compatible).

Structs§

BloomWriteStats
Counters emitted as GIT_TRACE2_EVENT for Bloom generation (commit-graph.c).
CommitGraphCommitInfo
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_set accounting for the “Collecting referenced commits” progress meter. Unlike collect_reachable_commit_oids, this does not walk commit parents.
load_commit_graph_commit_info
Load commit metadata from the ODB for graph writing.