Print the outcome of a single insert operation.
(
applied: &[Hash],
new_state: atomic_core::types::Merkle,
has_conflicts: bool,
)
| 751 | |
| 752 | /// Print the outcome of a single insert operation. |
| 753 | pub(crate) fn print_insert_outcome( |
| 754 | applied: &[Hash], |
| 755 | new_state: atomic_core::types::Merkle, |
| 756 | has_conflicts: bool, |
| 757 | ) { |
| 758 | println!(); |
| 759 | |
| 760 | if applied.is_empty() { |
| 761 | output::print_warning("No changes inserted."); |
| 762 | return; |
| 763 | } |
| 764 | |
| 765 | output::print_success(&format!("Inserted {} change(s)", applied.len())); |
| 766 | |
| 767 | println!(" New state: {}", new_state.to_base32()); |
| 768 | |
| 769 | if has_conflicts { |
| 770 | println!(); |
| 771 | output::print_warning("Conflicts detected. Run 'atomic conflicts' to see details."); |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | /// After materializing the current view, list any conflicted files inline so |
| 776 | /// the user does not have to run a second command to find them. |
no test coverage detected