(current: &'static str, next: &'static str)
| 875 | } |
| 876 | |
| 877 | fn merge_hunk_symbols(current: &'static str, next: &'static str) -> &'static str { |
| 878 | if current == next { |
| 879 | return current; |
| 880 | } |
| 881 | if current == "±" || next == "±" { |
| 882 | return "±"; |
| 883 | } |
| 884 | match (current, next) { |
| 885 | ("+", "~") | ("~", "+") | ("+", "-") | ("-", "+") | ("~", "-") | ("-", "~") => "±", |
| 886 | ("📁+", "📁-") | ("📁-", "📁+") => "±", |
| 887 | _ => current, |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | fn format_hunk_aggregate_info( |
| 892 | total: usize, |
no outgoing calls
no test coverage detected