(git_repo: &GitRepository, tree: &Tree<'_>, path: &str)
| 9544 | } |
| 9545 | |
| 9546 | fn git_mode_at(git_repo: &GitRepository, tree: &Tree<'_>, path: &str) -> Option<u32> { |
| 9547 | git_tree_entry(git_repo, tree, path) |
| 9548 | .ok() |
| 9549 | .map(|entry| entry.filemode() as u32) |
| 9550 | } |
| 9551 | |
| 9552 | /// Whether a path exists in the tree (any entry kind). |
| 9553 | fn tree_entry_exists(git_repo: &GitRepository, tree: &Tree, path: &str) -> bool { |
no test coverage detected