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

Function manifest_state_text

atomic-cli/src/commands/rpc.rs:5348–5359  ·  view source on GitHub ↗

One manifest render state for the divergence block — the local `format_manifest_state` over wire-carried data.

(state: &Option<pb::ManifestState>)

Source from the content-addressed store, hash-verified

5346/// One manifest render state for the divergence block — the local
5347/// `format_manifest_state` over wire-carried data.
5348fn manifest_state_text(state: &Option<pb::ManifestState>) -> String {
5349 match state {
5350 Some(state) if state.change_count > 0 => {
5351 format!(
5352 "{} ({} changes)",
5353 &state.state[..12.min(state.state.len())],
5354 state.change_count
5355 )
5356 }
5357 _ => "(empty)".to_string(),
5358 }
5359}
5360
5361/// `atomic push` over PushChanges — every form. The handler performs the
5362/// network sync end to end and returns the structured report; the CLI

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected