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

Function projection_message_for

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

Source from the content-addressed store, hash-verified

1639}
1640
1641fn projection_message_for(
1642 record_metadata: Option<&RecordProjectionMetadata>,
1643 view: &str,
1644 state: &str,
1645) -> String {
1646 match record_metadata {
1647 Some(RecordProjectionMetadata { change_hash }) => format!(
1648 "Atomic record projection\n\nAtomic-View: {view}\nAtomic-State: {state}\nAtomic-Changes: {}\n",
1649 atomic_core::types::Base32::to_base32(change_hash)
1650 ),
1651 None => format!(
1652 "Atomic shadow switch projection\n\nAtomic-View: {view}\nAtomic-State: {state}\n"
1653 ),
1654 }
1655}
1656
1657/// Journal the complete projection publication before any Git mutation
1658/// 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