Skip to content

Commit 500479f

Browse files
committed
Docs
1 parent 5fe0bc6 commit 500479f

17 files changed

Lines changed: 640 additions & 480 deletions

CHANGES.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Change History
32
==============
43

@@ -10,7 +9,7 @@ Major changes:
109

1110
- `Issue #91`_: Dropped support of EoL Python 3.8.
1211
- Added concept of backends to allow for faster regular expression matching. The backend can be controlled using the `backend` argument to `PathSpec()`, `PathSpec.from_lines()`, `GitIgnoreSpec()`, and `GitIgnoreSpec.from_lines()`.
13-
- Renamed "gitwildmatch" pattern back to "gitignore".
12+
- Renamed "gitwildmatch" pattern back to "gitignore". The "gitignore" pattern behaves slightly differently when used with `PathSpec` (*gitignore* as documented) than with `GitIgnoreSpec` (replicates *Git*'s edge cases).
1413

1514
API changes:
1615

@@ -27,12 +26,13 @@ API changes:
2726
New features:
2827

2928
- Added optional "hyperscan" backend using `hyperscan`_ library. It will automatically be used when installed. This dependency can be installed with ``pip install 'pathspec[hyperscan]'``.
30-
- Added optional "re2" backend using the `google-re2`_ library. It will automatically be used when installed. This dependency can be installed with ``pip install 'pathspec[google-re2]'``.
29+
- Added optional "re2" backend using the `google-re2`_ library. It will automatically be used when installed. This dependency can be installed with ``pip install 'pathspec[re2]'``.
3130
- Added optional dependency on `typing-extensions`_ library to improve some type hints.
3231

3332
Bug fixes:
3433

3534
- `Issue #93`_: Do not remove leading spaces.
35+
- `Issue #95`_: Matching for files inside folder does not seem to behave like .gitignore's.
3636
- `Issue #98`_: UnboundLocalError in RegexPattern when initialized with `pattern=None`.
3737
- Type hint on return value of `pathspec.pattern.RegexPattern.match_file()` to match documentation.
3838

@@ -46,6 +46,7 @@ Improvements:
4646
.. _`Issue #38`: https://github.com/cpburnz/python-pathspec/issues/38
4747
.. _`Issue #91`: https://github.com/cpburnz/python-pathspec/issues/91
4848
.. _`Issue #93`: https://github.com/cpburnz/python-pathspec/issues/93
49+
.. _`Issue #95`: https://github.com/cpburnz/python-pathspec/issues/95
4950
.. _`Issue #98`: https://github.com/cpburnz/python-pathspec/issues/98
5051
.. _`google-re2`: https://pypi.org/project/google-re2/
5152
.. _`hyperscan`: https://pypi.org/project/hyperscan/

0 commit comments

Comments
 (0)