pub fn commit_text(dest: &Path, text: &str, mode: CommitMode) -> Result<()>
Convenience: commit UTF-8 text with a trailing newline if missing.