(current: &'static str, next: &'static str)
| 910 | } |
| 911 | |
| 912 | fn merge_hunk_symbols(current: &'static str, next: &'static str) -> &'static str { |
| 913 | if current == next { |
| 914 | return current; |
| 915 | } |
| 916 | if current == "±" || next == "±" { |
| 917 | return "±"; |
| 918 | } |
| 919 | match (current, next) { |
| 920 | ("+", "~") | ("~", "+") | ("+", "-") | ("-", "+") | ("~", "-") | ("-", "~") => "±", |
| 921 | ("📁+", "📁-") | ("📁-", "📁+") => "±", |
| 922 | _ => current, |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | fn format_hunk_aggregate_info( |
| 927 | total: usize, |
no outgoing calls
no test coverage detected