You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.rst
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
Change History
3
2
==============
4
3
@@ -10,7 +9,7 @@ Major changes:
10
9
11
10
- `Issue #91`_: Dropped support of EoL Python 3.8.
12
11
- 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).
14
13
15
14
API changes:
16
15
@@ -27,12 +26,13 @@ API changes:
27
26
New features:
28
27
29
28
- 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]'``.
31
30
- Added optional dependency on `typing-extensions`_ library to improve some type hints.
32
31
33
32
Bug fixes:
34
33
35
34
- `Issue #93`_: Do not remove leading spaces.
35
+
- `Issue #95`_: Matching for files inside folder does not seem to behave like .gitignore's.
36
36
- `Issue #98`_: UnboundLocalError in RegexPattern when initialized with `pattern=None`.
37
37
- Type hint on return value of `pathspec.pattern.RegexPattern.match_file()` to match documentation.
0 commit comments