The algorithm-tagged core identity of a libgit2 object id.
(oid: git2::Oid)
| 1954 | |
| 1955 | /// The algorithm-tagged core identity of a libgit2 object id. |
| 1956 | fn to_core_oid(oid: git2::Oid) -> CliResult<atomic_core::operation::GitObjectId> { |
| 1957 | atomic_core::operation::GitObjectId::new( |
| 1958 | atomic_core::operation::GitHashAlgorithm::Sha1, |
| 1959 | oid.as_bytes().to_vec(), |
| 1960 | ) |
| 1961 | .map_err(|error| git_error(error.to_string())) |
| 1962 | } |
| 1963 | |
| 1964 | /// Deterministic projection crash points (opt-in instrumentation, CB-8B |
| 1965 | /// ac-3): compiled only with the `adoption-test-injection` feature. Each |
no test coverage detected