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

Method finalize

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

Recompute the contents hash after modifying contents.

(&mut self)

Source from the content-addressed store, hash-verified

281
282 /// Recompute the contents hash after modifying contents.
283 pub fn finalize(&mut self) {
284 self.hashed.contents_hash = Hash::of(&self.contents);
285 }
286
287 /// Set all hashed lifecycle/origin facts and validate them together.
288 pub fn with_classification(

Calls

no outgoing calls