fn clipped(text: &str, cap: usize) -> String
text cut to cap bytes without splitting a character: git’s stderr is arbitrary bytes, and a slice at a byte offset inside one panics.
text
cap