pub fn validate_message(value: &str) -> Result<(), GitArgError>Expand description
Validates the commit message. Passed to git as a single argv element
bound to -m’s value slot, so leading - is not an injection vector
here (unlike ref/remote/path names, which can appear as bare positional
argv entries) – only NUL bytes (illegal in a process argv on every
target platform) and an unreasonable length are rejected.