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

Method knows

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

Check if this change directly knows about another change. Direct knowledge comes from a context dependency or `extra_known`. Causal-frontier closure membership is accepted only by [`Self::knows_with_frontier`] after repository verification.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

874 /// Causal-frontier closure membership is accepted only by
875 /// [`Self::knows_with_frontier`] after repository verification.
876 pub fn knows(&self, hash: &Hash) -> bool {
877 self.hashed.dependencies.contains(hash) || self.hashed.extra_known.contains(hash)
878 }
879
880 /// Check direct knowledge plus a repository-verified causal closure.
881 ///

Callers 1

knows_with_frontierMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected