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

Function bare_change_info

libatomic/src/daemon/services.rs:1056–1071  ·  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

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