{"version":"2.1.336","anchor":"git-diff-withholds-on-risky-git-config-reads-coreattr-conf","canonical_anchor":"git-diff-withholds-on-risky-git-config-reads-coreattr-conf","heading":"File diffs are withheld when a repository's git settings look risky","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/git-diff-withholds-on-risky-git-config-reads-coreattr-conf","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### File diffs are withheld when a repository's git settings look risky\n\nClaude Code now withholds a file's diff when git filter drivers or unusual git settings are in play\n\n**Unclear.** Whether this check always runs or only under some condition is not clear.\n\n**What**\n\nWhen Claude Code shows a diff (the lines added and removed in a file), it asks git to produce it. It now reads a set of git settings, such as `core.autocrlf` and `attr.tree`, and passes them to git explicitly. It withholds the diff instead of showing it in these cases:\n\n- A filter driver is in play. A filter driver is a git setting that runs a program on a file's contents.\n\n- The git settings look unusual.\n\nBefore, Claude Code only checked whether a clean filter applied to the file.\n\n**Why**\n\nThis makes showing a diff safer: a repository's own git settings can make git run programs, and Claude Code now declines to produce the diff when that could happen.\n\n- Area: Git\n- Names: `core.autocrlf`, `attr.tree`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}