{"version":"2.1.333","anchor":"git-include-path-config-scan-bails-on-optional-includes","canonical_anchor":"git-status-for-the-startup-snapshot-now-honours-smudge-filte","heading":"Git configuration and include-path checks are stricter, and git status respects filters","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/git-include-path-config-scan-bails-on-optional-includes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Git configuration and include-path checks are stricter, and git status respects filters\n\nClaude Code's git config scans now run language-neutral and stop on optional includes, and its startup git status ignores filter-only changes\n\n**Unclear.** It is not clear whether stopping the scan early leaves those git config files readable or unreadable inside the sandbox.\n\n**What**\n\nGit lets one configuration file pull in others through include paths. Claude Code reads git configuration in a few places, and those reads changed:\n\n- The include-path lookup now runs with `LC_ALL` set to `C`, which makes git print plain, language-neutral output, and uses a single `--list` call instead of a separate `--name-only --list` call.\n\n- The include-path scan now stops early if the counts of include paths do not match or if any include is marked `:(optional)`.\n\n- The git snapshot Claude Code takes at startup now reads the configuration with `git config -z --name-only --list`. It uses `check-attr filter` to ignore files whose only change is a modification and which have a filter attribute, such as a smudge filter that rewrites file contents on checkout.\n\n- That snapshot refuses to run if the configuration contains `include.path` or if the git arguments are too long.\n\n- Git commands run by Claude Code can now be given input.\n\n**Why**\n\nFiles that only look changed because of a git filter no longer count as uncommitted changes at startup. Reading git configuration no longer depends on your language settings, and configurations with optional or mismatched includes change which git config files are treated as readable in the sandbox, the restricted area Claude Code runs commands in.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}