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

Method knows

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

Check if this change knows about another change. A change "knows" another if it's either a dependency or extra_known.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

650 ///
651 /// A change "knows" another if it's either a dependency or extra_known.
652 pub fn knows(&self, hash: &Hash) -> bool {
653 self.hashed.dependencies.contains(hash) || self.hashed.extra_known.contains(hash)
654 }
655
656 /// Collect all unique hashes referenced by hunks into the hash dedup table.
657 ///

Callers 2

check_vertex_for_zombiesFunction · 0.45
check_deleted_contextFunction · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected