Skip to content

Commit 5fda810

Browse files
committed
Fix issue 81
1 parent 5bd2db7 commit 5fda810

File tree

4 files changed

+147
-113
lines changed

4 files changed

+147
-113
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ New features:
2222

2323
Bug fixes:
2424

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

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

3435

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

pathspec/gitignore.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ def _match_file(
138138
# Check for directory marker.
139139
dir_mark = match.match.groupdict().get(_DIR_MARK)
140140

141-
# TODO: A exclude (whitelist) dir pattern here needs to deprioritize
142-
# for 81-c.
143-
144141
if dir_mark:
145142
# Pattern matched by a directory pattern.
146143
priority = 1

0 commit comments

Comments
 (0)