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

Function print_conflict_summary_entries

atomic-cli/src/commands/insert.rs:790–809  ·  view source on GitHub ↗

The inline conflicted-file listing over however the caller obtained the entries (the local repository read, or the wire's conflict listing) — one render, byte-identical by construction.

(entries: &[ConflictSummaryEntry])

Source from the content-addressed store, hash-verified

788/// the entries (the local repository read, or the wire's conflict
789/// listing) — one render, byte-identical by construction.
790pub(crate) fn print_conflict_summary_entries(entries: &[ConflictSummaryEntry]) {
791 if entries.is_empty() {
792 return;
793 }
794 println!();
795 let file_word = if entries.len() == 1 { "file" } else { "files" };
796 output::print_warning(&format!(
797 "{} conflicted {} — resolve markers, then record:",
798 entries.len(),
799 file_word
800 ));
801 for entry in entries {
802 let where_ = entry
803 .line
804 .map(|l| format!(" (line {})", l))
805 .unwrap_or_default();
806 println!(" {}{}", entry.path, where_);
807 }
808 output::print_hint("See 'atomic conflicts' for details.");
809}
810
811/// Print the outcome of a cross-view insert operation.
812pub(crate) fn print_cross_view_outcome(outcome: &CrossViewInsertOutcome, dry_run: bool) {

Callers 2

print_insert_refreshFunction · 0.85
print_conflict_summaryFunction · 0.85

Calls 4

print_warningFunction · 0.85
print_hintFunction · 0.85
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected