Lowercase name of a Git hash algorithm (unhashed provenance tag).
(algorithm: GitHashAlgorithm)
| 312 | |
| 313 | /// Lowercase name of a Git hash algorithm (unhashed provenance tag). |
| 314 | pub(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). |
| 322 | pub(crate) fn derivation_label(derivation: GitDerivation) -> &'static str { |