Defer ignored dirs scanning
This commit is contained in:
parent
30fefa0ef8
commit
906db58188
3 changed files with 18 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue