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

Function print_conflict_summary_entries

atomic-cli/src/commands/insert.rs:803–822  ·  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

801/// the entries (the local repository read, or the wire's conflict
802/// listing) — one render, byte-identical by construction.
803pub(crate) fn print_conflict_summary_entries(entries: &[ConflictSummaryEntry]) {
804 if entries.is_empty() {
805 return;
806 }
807 println!();
808 let file_word = if entries.len() == 1 { "file" } else { "files" };
809 output::print_warning(&format!(
810 "{} conflicted {} — resolve markers, then record:",
811 entries.len(),
812 file_word
813 ));
814 for entry in entries {
815 let where_ = entry
816 .line
817 .map(|l| format!(" (line {})", l))
818 .unwrap_or_default();
819 println!(" {}{}", entry.path, where_);
820 }
821 output::print_hint("See 'atomic conflicts' for details.");
822}
823
824/// Print the outcome of a cross-view insert operation.
825pub(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