-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
Problem
The .gitignore file contains patterns that use backslash-escaped spaces, which are valid for Git but cause parsing errors in ripgrep (rg).
Affected patterns:
| Line | Pattern | Issue |
|---|---|---|
| 11 | Any\ CPU/ |
Backslash-space escape |
| 12 | Current\ Binaries\ |
Ends with dangling \ |
| 13 | Persistance\ Cache*\ |
Ends with dangling \ |
| 96 | Generated\ Files/ |
Backslash-space escape |
Impact
When running ripgrep searches in this repository:
- Warning messages are displayed about glob parsing errors
- These directories may not be properly excluded from search results
- Search output can include unwanted files from ignored directories
Proposed Fix
Replace backslash-space patterns with bracket-based alternatives that work in both Git and ripgrep:
# Current (Git-only syntax)
Any\ CPU/
Current\ Binaries\
Persistance\ Cache*\
Generated\ Files/
# Proposed (compatible with Git and ripgrep)
Any[\ ]CPU/
Current[\ ]Binaries/
Persistance[\ ]Cache*/
Generated[\ ]Files/Context
This was discovered during codebase analysis when ripgrep reported parsing errors for glob entries with "dangling \".