Print the outcome of a single insert operation.
(
applied: &[Hash],
new_state: atomic_core::types::Merkle,
has_conflicts: bool,
)
| 738 | |
| 739 | /// Print the outcome of a single insert operation. |
| 740 | pub(crate) fn print_insert_outcome( |
| 741 | applied: &[Hash], |
| 742 | new_state: atomic_core::types::Merkle, |
| 743 | has_conflicts: bool, |
| 744 | ) { |
| 745 | println!(); |
| 746 | |
| 747 | if applied.is_empty() { |
| 748 | output::print_warning("No changes inserted."); |
| 749 | return; |
| 750 | } |
| 751 | |
| 752 | output::print_success(&format!("Inserted {} change(s)", applied.len())); |
| 753 | |
| 754 | println!(" New state: {}", new_state.to_base32()); |
| 755 | |
| 756 | if has_conflicts { |
| 757 | println!(); |
| 758 | output::print_warning("Conflicts detected. Run 'atomic conflicts' to see details."); |
| 759 | } |
| 760 | } |
| 761 | |
| 762 | /// After materializing the current view, list any conflicted files inline so |
| 763 | /// the user does not have to run a second command to find them. |
no test coverage detected