##// END OF EJS Templates
match: small tweak to PatternMatcher.visit_children_set...
Arseniy Alekseyev -
r52460:cae0be93 stable
parent child Browse files
Show More
@@ -354,9 +354,12 b" impl<'a> Matcher for PatternMatcher<'a> "
354 if self.prefix && self.files.contains(directory) {
354 if self.prefix && self.files.contains(directory) {
355 return VisitChildrenSet::Recursive;
355 return VisitChildrenSet::Recursive;
356 }
356 }
357 let path_or_parents_in_set = dir_ancestors(directory)
357 if self.dirs.contains(directory) {
358 .any(|parent_dir| self.files.contains(parent_dir));
358 return VisitChildrenSet::This;
359 if self.dirs.contains(directory) || path_or_parents_in_set {
359 }
360 if dir_ancestors(directory)
361 .any(|parent_dir| self.files.contains(parent_dir))
362 {
360 VisitChildrenSet::This
363 VisitChildrenSet::This
361 } else {
364 } else {
362 VisitChildrenSet::Empty
365 VisitChildrenSet::Empty
General Comments 0
You need to be logged in to leave comments. Login now