Expand description
bloom API (re-exported at this path).
Structs§
- Bloom
Filter Invalid - Invalid or missing Bloom filter data (zero-length filter, etc.).
- Bloom
Filter Settings - Settings stored in the BDAT chunk header and used for hashing.
Enums§
- Bloom
Build Outcome - Result of building a Bloom filter payload for one commit.
Constants§
- BLOOMDATA_
HEADER_ LEN BLOOMDATA_HEADER_LENconstant.
Functions§
- bloom_
filter_ contains - Returns
Ok(true)if all bits for every key are set,Ok(false)if definitely not,Err(BloomFilterInvalid)if the filter has zero length (missing / invalid). - bloom_
key_ hashes - Hash values for one path string (same length as
settings.num_hashes). - bloom_
keyvec_ for_ path - Build keys for
pathand every directory prefix (Gitbloom_keyvec_new). - build_
bloom_ filter_ data - Compute on-disk filter bytes for a commit’s changed paths.
- collect_
changed_ paths_ for_ bloom - Every distinct path and parent directory for diff paths (Git
pathmaporder doesn’t matter).