Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support honoring .gitignore and .ignore files #7

Open
jwodder opened this issue Apr 27, 2024 · 0 comments
Open

Support honoring .gitignore and .ignore files #7

jwodder opened this issue Apr 27, 2024 · 0 comments
Labels
c:filtering c:gitignore enhancement New feature or request therefor high priority Work on these first under consideration Dev has not yet decided whether or how to implement

Comments

@jwodder
Copy link
Owner

jwodder commented Apr 27, 2024

Possible API: Give iterpath() an ignore: bool = False (working name) argument; when true, .gitignore and .ignore files are honored during traversal.

  • Alternatively, ignore can be set to an iterable of strings giving the names of files to treat as (git)ignore-style files to honor.

  • Is it necessary to honor ignore files in parent directories of the starting directory?

  • How exactly should this work when dirs is True? Should anything be done about directories that don't contain any matching files? What about directories that don't match any patterns?

  • Add an option for also honoring the $HOME-wide gitignore file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:filtering c:gitignore enhancement New feature or request therefor high priority Work on these first under consideration Dev has not yet decided whether or how to implement
Projects
None yet
Development

No branches or pull requests

1 participant