Skip to main content

Module commit_graph_file

Module commit_graph_file 

Source
Expand description

Parsing Git commit-graph files and Bloom filter lookup (commit-graph.c / bloom.c compatible).

Re-exports§

pub use crate::bloom::collect_changed_paths_for_bloom;

Structs§

BloomWalkStats
Counters for GIT_TRACE2_PERF Bloom statistics (revision.c trace2_bloom_filter_statistics_atexit).
CommitGraphChain
Loaded commit-graph chain (newest layer first, matching commit-graph-chain file order).
CommitGraphLayer
One layer from .git/objects/info/commit-graph or commit-graphs/<hash>.graph.
ParsedGraphDump

Enums§

BloomPrecheck
Result of consulting Bloom filters before running a tree diff (matches revision.c).

Functions§

bloom_filter_for_commit_write
Build Bloom filter bytes for one commit; returns cumulative size contribution for BIDX.
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).
parse_graph_file
Parse all chunks for test-tool read-graph / debugging.

Type Aliases§

BloomWalkStatsHandle
Shared stats handle for crate::rev_list::RevListOptions::bloom_stats.