pub(crate) fn write_commit_truncated_msg( out: &mut impl Write, commit_msg: &str, max: usize, ) -> Result<()>
Writes up to max characters of s, appending … when the string is longer.
max
s
…