Whether `path` lies under a path this same commit vacates: a regular file or symlink replaced by a directory of the same name.
(path: &str, deleted: &HashSet<&str>)
| 9557 | /// Whether `path` lies under a path this same commit vacates: a regular |
| 9558 | /// file or symlink replaced by a directory of the same name. |
| 9559 | fn sits_under_deleted_path(path: &str, deleted: &HashSet<&str>) -> bool { |
| 9560 | !deleted.is_empty() |
| 9561 | && path |
| 9562 | .rmatch_indices('/') |
| 9563 | .any(|(end, _)| deleted.contains(&path[..end])) |
| 9564 | } |
| 9565 | |
| 9566 | /// The view a commit's Atomic claim is verified against and, when the view |
| 9567 | /// holds it, the state the commit names. |
no test coverage detected