Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdist.exclude takes precedence over .gitignore
Previously, sdist.exclude and the built-in EXCLUDE_LINES were prepended to the list of .gitignore rules. However, a common pattern of using * to exclude everything and then using !-rules to list what should be included renders this feature useless. This commit changes the behavior of each_unignored_file to sequentially consider the following sets of independent rules: 1. Explicit inclusions 2. Explicit exclusions 3. Global exclusions from the .gitignore files 4. The built-in exclusions 5. Nested exclusions from .gitignore Fixes #871
- Loading branch information