Skip to content

Commit

Permalink
Fix issue 81
Browse files Browse the repository at this point in the history
  • Loading branch information
cpburnz committed Dec 9, 2023
1 parent 5bd2db7 commit 5fda810
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 113 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ New features:

Bug fixes:

- `Issue #81`_: GitIgnoreSpec behaviors differ from git.
- `Pull #83`_: Fix ReadTheDocs builds.

Improvements:
Expand All @@ -32,6 +33,7 @@ Improvements:
- Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.


.. _`Issue #81`: https://github.com/cpburnz/python-pathspec/issues/81
.. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82
.. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83

Expand Down
3 changes: 0 additions & 3 deletions pathspec/gitignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ def _match_file(
# Check for directory marker.
dir_mark = match.match.groupdict().get(_DIR_MARK)

# TODO: A exclude (whitelist) dir pattern here needs to deprioritize
# for 81-c.

if dir_mark:
# Pattern matched by a directory pattern.
priority = 1
Expand Down
Loading

0 comments on commit 5fda810

Please sign in to comment.