Function format_commit

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

Format a commit for CommitFormat::Format(String).