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

Method get_header

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

Get the change header without loading the full change. This is more efficient when only metadata is needed. # Arguments `hash` - The content hash of the change # Returns The change header (message, authors, timestamp, etc.)

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

205 ///
206 /// The change header (message, authors, timestamp, etc.)
207 fn get_header(&self, hash: &Hash) -> Result<ChangeHeader, Self::Error> {
208 Ok(self.get_change(hash)?.hashed.header)
209 }
210
211 /// Get the dependencies of a change.
212 ///

Callers 1

test_get_headerFunction · 0.45

Implementers 1

store.rsatomic-core/src/change/store.rs

Calls 1

get_changeMethod · 0.45

Tested by 1

test_get_headerFunction · 0.36