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

Method add_dependency

atomic-core/src/record/workflow/globalize/context.rs:147–149  ·  view source on GitHub ↗

Add a dependency on an existing change. Dependencies are automatically deduplicated. # Arguments `hash` - Hash of the change to depend on

(&mut self, hash: Hash)

Source from the content-addressed store, hash-verified

145 ///
146 /// * `hash` - Hash of the change to depend on
147 pub fn add_dependency(&mut self, hash: Hash) {
148 self.dependencies.insert(hash);
149 }
150
151 /// Add a dependency by node ID, looking up the hash.
152 ///

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected