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

Function bare_change_info

libatomic/src/daemon/services.rs:1057–1072  ·  view source on GitHub ↗

The hash-only report entry for a change the listing could not load — the local previews print the hash alone in that case, never an error.

(hash: &atomic_core::types::Merkle)

Source from the content-addressed store, hash-verified

1055/// The hash-only report entry for a change the listing could not load —
1056/// the local previews print the hash alone in that case, never an error.
1057fn bare_change_info(hash: &atomic_core::types::Merkle) -> ChangeInfo {
1058 ChangeInfo {
1059 hash: Some(hash_proto(hash)),
1060 message: None,
1061 description: None,
1062 authors: Vec::new(),
1063 recorded_at: None,
1064 dependencies: Vec::new(),
1065 graph_section_count: 0,
1066 semantic_section_count: 0,
1067 content_chunk_count: 0,
1068 has_provenance: false,
1069 has_unhashed: false,
1070 has_signature: false,
1071 }
1072}
1073
1074/// A wire Hash → the domain Merkle, refusing a malformed value.
1075fn wire_hash(hash: &crate::atomic::Hash) -> Result<atomic_core::types::Merkle, Status> {

Callers 1

insert_changesMethod · 0.85

Calls 1

hash_protoFunction · 0.70

Tested by

no test coverage detected