Map a binding payload's Git object format onto the core algorithm tag.
(format: GitObjectFormat)
| 1457 | |
| 1458 | /// Map a binding payload's Git object format onto the core algorithm tag. |
| 1459 | fn git_algorithm(format: GitObjectFormat) -> atomic_core::operation::GitHashAlgorithm { |
| 1460 | match format { |
| 1461 | GitObjectFormat::Sha1 => atomic_core::operation::GitHashAlgorithm::Sha1, |
| 1462 | GitObjectFormat::Sha256 => atomic_core::operation::GitHashAlgorithm::Sha256, |
| 1463 | } |
| 1464 | } |
| 1465 | |
| 1466 | /// The bound tree as a core-tagged Git object id. |
| 1467 | fn bound_tree_oid( |
no outgoing calls
no test coverage detected