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

Function display_manifest_divergence

atomic-cli/src/commands/push/helpers.rs:452–463  ·  view source on GitHub ↗

Display a local vs remote manifest state comparison for one view. Used when a view has diverged, so the user can see where each side is.

(local_view: &str, local: &ViewManifest, remote: &ViewManifest)

Source from the content-addressed store, hash-verified

450///
451/// Used when a view has diverged, so the user can see where each side is.
452pub fn display_manifest_divergence(local_view: &str, local: &ViewManifest, remote: &ViewManifest) {
453 println!(
454 " Local: {} at {}",
455 style_view(local_view),
456 info(&format_manifest_state(local))
457 );
458 println!(
459 " Remote: {} at {}",
460 style_view(&remote.name),
461 info(&format_manifest_state(remote))
462 );
463}
464
465/// Format a manifest's state for display.
466fn format_manifest_state(manifest: &ViewManifest) -> String {

Callers 1

divergence_errorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected