pub fn hash_commit(format: HashFormat, f: &CommitFields<'_>) -> Hash
Hash a commit under the given format.