Rescan worktree on scan exclusions settings change

This commit is contained in:
Kirill Bulatov 2023-11-14 16:35:49 +02:00
parent 1612c90052
commit 9373d38434
3 changed files with 136 additions and 66 deletions

View file

@ -202,6 +202,14 @@ impl std::fmt::Display for PathMatcher {
}
}
impl PartialEq for PathMatcher {
fn eq(&self, other: &Self) -> bool {
self.maybe_path.eq(&other.maybe_path)
}
}
impl Eq for PathMatcher {}
impl PathMatcher {
pub fn new(maybe_glob: &str) -> Result<Self, globset::Error> {
Ok(PathMatcher {