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])
| 801 | /// the entries (the local repository read, or the wire's conflict |
| 802 | /// listing) — one render, byte-identical by construction. |
| 803 | pub(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. |
| 825 | pub(crate) fn print_cross_view_outcome(outcome: &CrossViewInsertOutcome, dry_run: bool) { |
no test coverage detected