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

Function git_algorithm_label

atomic-cli/src/commands/git/parallel.rs:515–520  ·  view source on GitHub ↗

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

(algorithm: GitHashAlgorithm)

Source from the content-addressed store, hash-verified

513
514/// Lowercase name of a Git hash algorithm (unhashed provenance tag).
515pub(crate) fn git_algorithm_label(algorithm: GitHashAlgorithm) -> &'static str {
516 match algorithm {
517 GitHashAlgorithm::Sha1 => "sha1",
518 GitHashAlgorithm::Sha256 => "sha256",
519 }
520}
521
522/// A parsed git commit ready for Phase 2 processing.
523#[derive(Debug, Clone)]

Callers 2

foreign_commit_factsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected