ignore/gitignore: skip BOM at start of ignore file

This matches Git's behavior.

Fixes #2177, Closes #2782
This commit is contained in:
Stephen Albert-Moore
2024-04-17 16:58:23 -04:00
committed by Andrew Gallant
parent c93fc793a0
commit 483628469a
4 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ Bug fixes:
[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.
* [BUG #2177](https://github.com/BurntSushi/ripgrep/issues/2177):
Ignore a UTF-8 BOM marker at the start of `.gitignore` (and similar files).
Feature enhancements: