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

Function projection_message_for

atomic-cli/src/commands/git/shadow.rs:1829–1843  ·  view source on GitHub ↗
(
    record_metadata: Option<&RecordProjectionMetadata>,
    view: &str,
    state: &str,
)

Source from the content-addressed store, hash-verified

1827}
1828
1829fn projection_message_for(
1830 record_metadata: Option<&RecordProjectionMetadata>,
1831 view: &str,
1832 state: &str,
1833) -> String {
1834 match record_metadata {
1835 Some(RecordProjectionMetadata { change_hash }) => format!(
1836 "Atomic record projection\n\nAtomic-View: {view}\nAtomic-State: {state}\nAtomic-Changes: {}\n",
1837 atomic_core::types::Base32::to_base32(change_hash)
1838 ),
1839 None => format!(
1840 "Atomic shadow switch projection\n\nAtomic-View: {view}\nAtomic-State: {state}\n"
1841 ),
1842 }
1843}
1844
1845/// Journal the complete projection publication before any Git mutation
1846/// becomes visible (RFC §7.2 step 3/4, CB-8B ac-3, review ATOM::aaron::2),

Callers 1

build_switch_projectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected