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

Function merge_hunk_symbols

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

Source from the content-addressed store, hash-verified

893}
894
895fn 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
909fn format_hunk_aggregate_info(
910 total: usize,

Callers 1

hunk_display_summariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected