pub fn format(
    commit: &Commit<'_>,
    branches: String,
    wrapping: &Option<Options<'_, HyphenSplitter>>,
    hash_color: Option<u8>,
    format: &CommitFormat
) -> Result<Vec<String>, String>
Expand description

Format a commit for CommitFormat::Short, CommitFormat::Medium or CommitFormat::Full.