(current: &'static str, next: &'static str)
| 933 | } |
| 934 | |
| 935 | fn merge_hunk_symbols(current: &'static str, next: &'static str) -> &'static str { |
| 936 | if current == next { |
| 937 | return current; |
| 938 | } |
| 939 | if current == "±" || next == "±" { |
| 940 | return "±"; |
| 941 | } |
| 942 | match (current, next) { |
| 943 | ("+", "~") | ("~", "+") | ("+", "-") | ("-", "+") | ("~", "-") | ("-", "~") => "±", |
| 944 | ("📁+", "📁-") | ("📁-", "📁+") => "±", |
| 945 | _ => current, |
| 946 | } |
| 947 | } |
| 948 | |
| 949 | fn format_hunk_aggregate_info( |
| 950 | total: usize, |
no outgoing calls
no test coverage detected