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

Function merge_hunk_symbols

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

Source from the content-addressed store, hash-verified

875}
876
877fn 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
891fn format_hunk_aggregate_info(
892 total: usize,

Callers 1

hunk_display_summariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected