Skip to content

Conversation

@zooltd
Copy link
Contributor

@zooltd zooltd commented May 11, 2021

the function config.PathsIgnore would be called twice each time a filepath is checked

@wu-sheng wu-sheng requested a review from kezhenxu94 May 11, 2021 14:24
@kezhenxu94
Copy link
Member

This is intended, the first check acts as a fast-return pattern.

For example, if the ignore paths include .git/** (or .git), the entire .git folder will be ignored without listing all files recursively under .git and perform ignoring logic, which saves a lot of time

@kezhenxu94 kezhenxu94 closed this May 12, 2021
@kezhenxu94 kezhenxu94 added this to the 0.2.0 milestone May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants