Skip to content

File system watcher should skip ignored directories in more cases #9339

@calmh

Description

@calmh

Currently the file system watcher will skip watching ignored directories in trivial cases:

/foo

However, as soon as there is something "tricky" like an exclude pattern, it doesn't:

/foo
!bar

(/foo is no longer skipped, because in the mind of the ignore matcher, we might find unignored stuff underneath it...)

However there are a bunch of simple cases like above where we can safely say that anything under /foo must be ignored, because any other patterns come later in the file and will never be processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions