ignore: fix filtering searching subdir or .ignore in parent dir
The previous code deleted too many parts of the path when constructing the absolute path, resulting in a shortened final path. This patch creates the correct absolute path by only removing the necessary parts. Fixes #829, Fixes #2731, Fixes #2747, Fixes #2778, Fixes #2836, Fixes #2933, Fixes #3144 Closes #2933
This commit is contained in:
committed by
Andrew Gallant
parent
f722268814
commit
14f4957b3d
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@ TBD
|
||||
===
|
||||
Unreleased changes. Release notes have not yet been written.
|
||||
|
||||
Bug fixes:
|
||||
|
||||
* [BUG #829](https://github.com/BurntSushi/ripgrep/issues/829),
|
||||
[BUG #2731](https://github.com/BurntSushi/ripgrep/issues/2731),
|
||||
[BUG #2747](https://github.com/BurntSushi/ripgrep/issues/2747),
|
||||
[BUG #2778](https://github.com/BurntSushi/ripgrep/issues/2778),
|
||||
[BUG #2836](https://github.com/BurntSushi/ripgrep/issues/2836),
|
||||
[BUG #2933](https://github.com/BurntSushi/ripgrep/pull/2933):
|
||||
Fix bug related to gitignores from parent directories.
|
||||
|
||||
Feature enhancements:
|
||||
|
||||
* [FEATURE #2708](https://github.com/BurntSushi/ripgrep/pull/2708):
|
||||
|
||||
Reference in New Issue
Block a user