Lowercase name of a Git hash algorithm (unhashed provenance tag).
(algorithm: GitHashAlgorithm)
| 513 | |
| 514 | /// Lowercase name of a Git hash algorithm (unhashed provenance tag). |
| 515 | pub(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)] |
no outgoing calls
no test coverage detected