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

Function git_algorithm_label

atomic-repository/src/repository/synthesis.rs:314–319  ·  view source on GitHub ↗

Lowercase name of a Git hash algorithm (unhashed provenance tag).

(algorithm: GitHashAlgorithm)

Source from the content-addressed store, hash-verified

312
313/// Lowercase name of a Git hash algorithm (unhashed provenance tag).
314pub(crate) fn git_algorithm_label(algorithm: GitHashAlgorithm) -> &'static str {
315 match algorithm {
316 GitHashAlgorithm::Sha1 => "sha1",
317 GitHashAlgorithm::Sha256 => "sha256",
318 }
319}
320
321/// Lowercase name of a Git derivation (unhashed provenance tag).
322pub(crate) fn derivation_label(derivation: GitDerivation) -> &'static str {

Callers 1

unhashed_git_factsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected