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