pub fn oid_to_hash(oid: Oid) -> Result<GitHash>
Convert git2::Oid to GitHash (supports both SHA1 and SHA256)