Retract back to original scanning strategy

Do not descend into ignored directories, to avoid tracking their state.
This commit is contained in:
Kirill Bulatov 2023-11-16 22:09:50 +02:00
parent 906db58188
commit 6028cd90d4
3 changed files with 29 additions and 31 deletions

View file

@ -20,10 +20,6 @@ impl IgnoreStack {
Arc::new(Self::All)
}
pub fn is_all(&self) -> bool {
matches!(self, Self::All)
}
pub fn append(self: Arc<Self>, abs_base_path: Arc<Path>, ignore: Arc<Gitignore>) -> Arc<Self> {
match self.as_ref() {
IgnoreStack::All => self,