Defer ignored dirs scanning

This commit is contained in:
Kirill Bulatov 2023-11-15 22:53:02 +02:00
parent 30fefa0ef8
commit 906db58188
3 changed files with 18 additions and 6 deletions

View file

@ -20,6 +20,10 @@ 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,