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:3934–3939  ·  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

3932/// Split the value of a single `Atomic-Changes:` trailer (the text after the
3933/// colon) into individual, non-empty change hashes.
3934fn split_atomic_changes_value(value: &str) -> impl Iterator<Item = String> + '_ {
3935 value
3936 .split(',')
3937 .map(|s| s.trim().to_string())
3938 .filter(|s| !s.is_empty())
3939}
3940
3941/// Parse **every** `Atomic-Changes:` trailer in a commit message.
3942///

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected