(current: &'static str, next: &'static str)
| 893 | } |
| 894 | |
| 895 | fn merge_hunk_symbols(current: &'static str, next: &'static str) -> &'static str { |
| 896 | if current == next { |
| 897 | return current; |
| 898 | } |
| 899 | if current == "±" || next == "±" { |
| 900 | return "±"; |
| 901 | } |
| 902 | match (current, next) { |
| 903 | ("+", "~") | ("~", "+") | ("+", "-") | ("-", "+") | ("~", "-") | ("-", "~") => "±", |
| 904 | ("📁+", "📁-") | ("📁-", "📁+") => "±", |
| 905 | _ => current, |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | fn format_hunk_aggregate_info( |
| 910 | total: usize, |
no outgoing calls
no test coverage detected