pub fn finalize_stored_commit_message(
message: String,
commit_encoding: Option<&str>,
) -> (String, Option<String>, Option<Vec<u8>>)Expand description
Prepare a commit message for storage per i18n.commitEncoding (or equivalent).
When the configured encoding is not UTF-8, returns Some raw bytes for the body
and sets encoding in the commit object; otherwise UTF-8 is stored without an
encoding header.