{"version":"2.1.311","anchor":"gitignore-style-rule-parser-for-search-globs-adds-negation-h","canonical_anchor":"gitignore-style-rule-parser-for-search-globs-adds-negation-h","heading":"Ignore-file rules that start with ! are handled when building search patterns","tier":"internal","area":"File Suggestions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311\/e\/gitignore-style-rule-parser-for-search-globs-adds-negation-h","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311","markdown":"### Ignore-file rules that start with ! are handled when building search patterns\n\nA new converter turns ignore-file lines into search patterns, including rules starting with ! that re-include files\n\n**Unclear.** Which search feature uses this converter is not known, so it is unclear what it changes for you.\n\n**What**\n\nClaude Code has a new converter that turns lines from ignore files (files like `.gitignore` that list paths to leave out) into patterns for ripgrep, the search program it uses to find files. It escapes special characters, and for rules that start with `!`, which bring a path back in after it was excluded, it adds extra patterns so the contents of that folder are included too.\n\n**Why**\n\nThis may mean that file searches respect ignore rules beginning with `!` that were previously not honoured.\n\n- Area: File Suggestions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}