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)
| 450 | /// |
| 451 | /// Used when a view has diverged, so the user can see where each side is. |
| 452 | pub 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. |
| 466 | fn format_manifest_state(manifest: &ViewManifest) -> String { |