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

Method finalize

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

Recompute the contents hash after modifying contents.

(&mut self)

Source from the content-addressed store, hash-verified

255
256 /// Recompute the contents hash after modifying contents.
257 pub fn finalize(&mut self) {
258 self.hashed.contents_hash = Hash::of(&self.contents);
259 }
260
261 /// Get the change message.
262 pub fn message(&self) -> &str {

Calls

no outgoing calls