MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / knows_with_frontier

Method knows_with_frontier

atomic-core/src/change/change.rs:884–887  ·  view source on GitHub ↗

Check direct knowledge plus a repository-verified causal closure. A verified index for a different frontier is ignored, preventing callers from using unrelated closure membership as causal proof.

(&self, hash: &Hash, verified: &VerifiedCausalFrontier)

Source from the content-addressed store, hash-verified

882 /// A verified index for a different frontier is ignored, preventing callers
883 /// from using unrelated closure membership as causal proof.
884 pub fn knows_with_frontier(&self, hash: &Hash, verified: &VerifiedCausalFrontier) -> bool {
885 self.knows(hash)
886 || (verified.matches(&self.hashed.causal_frontier) && verified.contains(hash))
887 }
888
889 /// Collect all unique hashes referenced by hunks into the hash dedup table.
890 ///

Callers 2

check_vertex_for_zombiesFunction · 0.80
check_deleted_contextFunction · 0.80

Calls 3

knowsMethod · 0.45
matchesMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected