forked from mirrors/jj
fsmonitor: don't apply prefix matching to paths obtained from watchman
If I understand it, watchman returns changed files and directories, and a directory change doesn't mean we need to scan all files under the directory.
This commit is contained in:
parent
767e94f5af
commit
1ddcaa43b3
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ use crate::fsmonitor::FsmonitorKind;
|
|||
use crate::gitignore::GitIgnoreFile;
|
||||
use crate::lock::FileLock;
|
||||
use crate::matchers::{
|
||||
DifferenceMatcher, EverythingMatcher, IntersectionMatcher, Matcher, PrefixMatcher,
|
||||
DifferenceMatcher, EverythingMatcher, FilesMatcher, IntersectionMatcher, Matcher, PrefixMatcher,
|
||||
};
|
||||
use crate::merge::{Merge, MergeBuilder, MergedTreeValue};
|
||||
use crate::merged_tree::{MergedTree, MergedTreeBuilder};
|
||||
|
@ -870,7 +870,7 @@ impl TreeState {
|
|||
.collect_vec()
|
||||
});
|
||||
|
||||
Some(Box::new(PrefixMatcher::new(&repo_paths)))
|
||||
Some(Box::new(FilesMatcher::new(&repo_paths)))
|
||||
}
|
||||
};
|
||||
Ok(FsmonitorMatcher {
|
||||
|
|
Loading…
Reference in a new issue