Expand description
Commit-graph files for reachability and generation numbers.
Structs§
- Bloom
Walk Stats - Counters for
GIT_TRACE2_PERFBloom statistics (revision.ctrace2_bloom_filter_statistics_atexit). - Bloom
Write Stats - Counters emitted as
GIT_TRACE2_EVENTfor Bloom generation (commit-graph.c). - Commit
Graph Chain - Loaded commit-graph chain (newest layer first, matching
commit-graph-chainfile order). - Commit
Graph Commit Info - Per-commit data needed to write CDAT / Bloom.
- Commit
Graph Layer - One layer from
.git/objects/info/commit-graphorcommit-graphs/<hash>.graph. - Parsed
Graph Dump - Parsed commit-graph header fields for debugging and
--dumpstyle output.
Enums§
- Bloom
Precheck - Result of consulting Bloom filters before running a tree diff (matches
revision.c).
Functions§
- atomic_
replace_ commit_ graph - Replace
objects/info/commit-graphatomically (lock + tempfile + rename). - bloom_
filter_ for_ commit_ write - Build Bloom filter bytes for one commit; returns cumulative size contribution for BIDX.
- build_
commit_ graph_ bytes - Build raw commit-graph bytes (without touching the filesystem).
- collect_
changed_ paths_ for_ bloom - Re-export for
commit-graphwrite. Every distinct path and parent directory for diff paths (Gitpathmaporder doesn’t matter). - collect_
reachable_ commit_ oids - Collect reachable commit OIDs from on-disk ref tips under
git_dir. - collect_
reachable_ commit_ oids_ for_ repository - Collect reachable commit OIDs from ref tips via the repository
RefStore. - commit_
tree_ has_ high_ bit_ paths - Whether a commit’s tree (recursively) has any high-bit path bytes
(
bloom.c:commit_tree_has_high_bit_paths). - 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. - diff_
changed_ paths_ for_ bloom - Compute changed paths between parent and commit trees (recursive diff, no rename detection).
- dump_
bloom_ filters - Dump hex lines of Bloom filters (one per commit, empty line for empty filter).
- load_
commit_ graph_ commit_ info - Load commit metadata from the ODB for graph writing.
- parse_
graph_ file - Parse all chunks for
test-tool read-graph/ debugging. - remove_
commit_ graph_ chain_ dir - Remove
objects/info/commit-graphswhen replacing a split chain with a single graph file.
Type Aliases§
- Bloom
Walk Stats Handle - Shared stats handle for
crate::rev_list::RevListOptions::bloom_stats.