(object: &GitObjectId)
| 4721 | } |
| 4722 | |
| 4723 | pub(super) fn git_object_hex(object: &GitObjectId) -> Result<String, RepositoryError> { |
| 4724 | let hex: String = object |
| 4725 | .as_bytes() |
| 4726 | .iter() |
| 4727 | .map(|byte| format!("{byte:02x}")) |
| 4728 | .collect(); |
| 4729 | Ok(hex) |
| 4730 | } |
| 4731 | |
| 4732 | pub(super) fn git_oid_from_object( |
| 4733 | repo: &git2::Repository, |
no test coverage detected