MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / merge_hunk_symbols

Function merge_hunk_symbols

atomic-cli/src/commands/change/command.rs:935–947  ·  view source on GitHub ↗
(current: &'static str, next: &'static str)

Source from the content-addressed store, hash-verified

933}
934
935fn 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
949fn format_hunk_aggregate_info(
950 total: usize,

Callers 1

hunk_display_summariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected