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

Method knows

atomic-core/src/change/change.rs:582–584  ·  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

580 ///
581 /// A change "knows" another if it's either a dependency or extra_known.
582 pub fn knows(&self, hash: &Hash) -> bool {
583 self.hashed.dependencies.contains(hash) || self.hashed.extra_known.contains(hash)
584 }
585
586 /// Collect all unique hashes referenced by hunks into the hash dedup table.
587 ///

Callers 2

check_vertex_for_zombiesFunction · 0.45
check_deleted_contextFunction · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected