generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitignore_parser: Collect logic matching many rules into match_rules()
This replace the last half of parse_gitignore_lines() with a dedicated function for applying a list of matching rules to a single path. Also, take over the call from DirectoryTraversal._do_ignore() which had duplicated this logic.
- Loading branch information
Showing
2 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters