{"version":"2.1.314","anchor":"git-config-adds-diffautorefreshindexfalse","canonical_anchor":"git-config-adds-diffautorefreshindexfalse","heading":"Git commands run by Claude Code now stop git diff from refreshing the index","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314\/e\/git-config-adds-diffautorefreshindexfalse","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314","markdown":"### Git commands run by Claude Code now stop git diff from refreshing the index\n\nClaude Code's git safety overrides now also set diff.autoRefreshIndex to false, so git diff no longer writes to the index\n\n**What**\n\nThe list of configuration overrides Claude Code applies to the git commands it runs behind the scenes now also sets `diff.autoRefreshIndex` to `false`. It sits alongside the existing `gc.auto=0` and `maintenance.auto=false` overrides. With it, git's diff commands no longer refresh the index, which is git's record of the files staged for the next commit, so they make no writes to it.\n\n**Why**\n\nIt cuts down on files that Claude Code's own git commands change as a side effect, so checking your repository does not quietly modify it.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}