MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / git_algorithm

Function git_algorithm

atomic-repository/src/repository/resurrection.rs:1459–1464  ·  view source on GitHub ↗

Map a binding payload's Git object format onto the core algorithm tag.

(format: GitObjectFormat)

Source from the content-addressed store, hash-verified

1457
1458/// Map a binding payload's Git object format onto the core algorithm tag.
1459fn 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.
1467fn bound_tree_oid(

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected