@@ -12,12 +12,13 @@ use yazi_shared::url::AsUrl;
1212#[ derive( Clone ) ]
1313pub struct IgnoreFilter {
1414 /// Set of paths ignored by git (from git status)
15- ignored_paths : HashSet < PathBuf > ,
15+ ignored_paths : HashSet < PathBuf > ,
1616 /// Custom gitignore matcher for exclude patterns
17- gitignore : Option < ignore:: gitignore:: Gitignore > ,
17+ gitignore : Option < ignore:: gitignore:: Gitignore > ,
1818 /// Custom glob-based matcher function for advanced pattern matching
19- /// Returns Some(true) if should be ignored, Some(false) if whitelisted, None if no match
20- glob_matcher : Option < Arc < dyn Fn ( & Path ) -> Option < bool > + Send + Sync > > ,
19+ /// Returns Some(true) if should be ignored, Some(false) if whitelisted, None
20+ /// if no match
21+ glob_matcher : Option < Arc < dyn Fn ( & Path ) -> Option < bool > + Send + Sync > > ,
2122}
2223
2324impl std:: fmt:: Debug for IgnoreFilter {
@@ -114,8 +115,8 @@ impl IgnoreFilter {
114115 if ignored_paths. is_empty ( )
115116 || ( ignored_paths. len ( ) == 1 && ignored_paths. contains ( & workdir. join ( ".git" ) ) )
116117 {
117- // If we have no git-ignored paths but we have exclude patterns or glob matcher, still create
118- // the filter
118+ // If we have no git-ignored paths but we have exclude patterns or glob matcher,
119+ // still create the filter
119120 if gitignore. is_some ( ) || glob_matcher. is_some ( ) {
120121 return Some ( Self { ignored_paths, gitignore, glob_matcher } ) ;
121122 }
0 commit comments