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

Method get_dependencies

atomic-core/src/change/store.rs:244–246  ·  view source on GitHub ↗

Get the dependencies of a change. # Arguments `hash` - The content hash of the change # Returns The list of dependency hashes.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

242 ///
243 /// The list of dependency hashes.
244 fn get_dependencies(&self, hash: &Hash) -> Result<Vec<Hash>, Self::Error> {
245 Ok(self.get_change(hash)?.hashed.dependencies)
246 }
247
248 /// Check if a change knows about another change.
249 ///

Callers 1

test_get_dependenciesFunction · 0.45

Implementers 3

build_tests.rsatomic-core/src/pristine/span_patch_st
verified.rsatomic-core/src/change/verified.rs
store.rsatomic-core/src/change/store.rs

Calls 1

get_changeMethod · 0.45

Tested by 1

test_get_dependenciesFunction · 0.36