(
entry: &RepositoryEntry,
algorithm: GitHashAlgorithm,
)
| 705 | } |
| 706 | |
| 707 | fn expected_git_oid( |
| 708 | entry: &RepositoryEntry, |
| 709 | algorithm: GitHashAlgorithm, |
| 710 | ) -> Result<GitObjectId, ProjectTreeError> { |
| 711 | match entry.kind { |
| 712 | InodeKind::Gitlink => entry |
| 713 | .gitlink |
| 714 | .clone() |
| 715 | .ok_or_else(|| ProjectTreeError::InvalidGitlink("missing Git object identity".into())), |
| 716 | InodeKind::Regular | InodeKind::Symlink => { |
| 717 | git_object_id(algorithm, GitObjectKind::Blob, &entry.repository_bytes) |
| 718 | } |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | fn kind_from_git_mode(mode: u32) -> Option<InodeKind> { |
| 723 | match mode { |
no test coverage detected