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

Function split_atomic_changes_value

atomic-cli/src/commands/git/parallel.rs:8437–8442  ·  view source on GitHub ↗

Split the value of a single `Atomic-Changes:` trailer (the text after the colon) into individual, non-empty change hashes.

(value: &str)

Source from the content-addressed store, hash-verified

8435/// Split the value of a single `Atomic-Changes:` trailer (the text after the
8436/// colon) into individual, non-empty change hashes.
8437fn split_atomic_changes_value(value: &str) -> impl Iterator<Item = String> + '_ {
8438 value
8439 .split(',')
8440 .map(|s| s.trim().to_string())
8441 .filter(|s| !s.is_empty())
8442}
8443
8444/// Parse **every** `Atomic-Changes:` trailer in a commit message.
8445///

Callers 2

parse_push_trailerFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected