(message: impl std::fmt::Display)
| 62 | } |
| 63 | |
| 64 | fn git_map(message: impl std::fmt::Display) -> RepositoryError { |
| 65 | RepositoryError::InvalidRepository { |
| 66 | reason: message.to_string(), |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | fn direct_target(oid: git2::Oid) -> Result<GitRefTarget, RepositoryError> { |
| 71 | let algorithm = match oid.as_bytes().len() { |
no outgoing calls
no test coverage detected