| 3679 | use std::path::Path; |
| 3680 | |
| 3681 | fn walk_scan( |
| 3682 | root: &Path, |
| 3683 | dir: &Path, |
| 3684 | known: &BTreeSet<String>, |
| 3685 | known_gitlinks: &BTreeSet<String>, |
| 3686 | inject: Option<&OsStr>, |
| 3687 | ) -> Result<Vec<String>, RepositoryError> { |
| 3688 | let rules = crate::ignore::IgnoreRules::load(root); |
| 3689 | let mut out = Vec::new(); |
| 3690 | walk_unexplained_worktree(root, dir, &rules, known, known_gitlinks, inject, &mut out)?; |
| 3691 | out.sort(); |
| 3692 | out.dedup(); |
| 3693 | Ok(out) |
| 3694 | } |
| 3695 | |
| 3696 | #[test] |
| 3697 | fn unexplained_walk_propagates_enumeration_failure_instead_of_partial_scan() { |