From 43795d652015c4f8920a964d7fe3c51efeeaa056 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Tue, 20 Feb 2024 01:26:28 +0900 Subject: [PATCH] fix: taurignore ignoreing folders not working for watch --- tooling/cli/src/interface/rust.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 8e2a78eab9a6..27bce93344e1 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -264,7 +264,10 @@ struct IgnoreMatcher(Vec); impl IgnoreMatcher { fn is_ignore(&self, path: &Path, is_dir: bool) -> bool { for gitignore in &self.0 { - if gitignore.matched(path, is_dir).is_ignore() { + if gitignore + .matched_path_or_any_parents(path, is_dir) + .is_ignore() + { return true; } }