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

Method finalize

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

Recompute the contents hash after modifying contents.

(&mut self)

Source from the content-addressed store, hash-verified

291
292 /// Recompute the contents hash after modifying contents.
293 pub fn finalize(&mut self) {
294 self.hashed.contents_hash = Hash::of(&self.contents);
295 }
296
297 /// Set all hashed lifecycle/origin facts and validate them together.
298 pub fn with_classification(

Calls

no outgoing calls