{"version":"2.1.334","anchor":"git-check-ignore-now-uses-nul-delimited-stdin","canonical_anchor":"git-check-ignore-now-uses-nul-delimited-stdin","heading":"Checking which files git ignores now handles unusual file names","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/git-check-ignore-now-uses-nul-delimited-stdin","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Checking which files git ignores now handles unusual file names\n\nClaude Code now hands paths to `git check-ignore` separated by null characters, so names with spaces or line breaks, and long lists, are read correctly\n\n**What**\n\nClaude Code asks git which files are ignored, meaning listed in a `.gitignore` file so that git leaves them out. It now runs `git check-ignore -z --stdin`. This passes the paths to git as input, separated by an invisible null character, and Claude Code reads the answer back the same way without trimming it. Before, the answer was split on line breaks and trimmed.\n\nThese cases are now handled correctly:\n\n- paths that contain line breaks\n\n- paths that contain spaces\n\n- very long lists of paths\n\n**Why**\n\nIt fixes cases where the names of ignored files were read wrongly.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}