Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

File diffs are withheld when a repository's git settings look risky

Claude Code now withholds a file's diff when git filter drivers or unusual git settings are in play

You'll notice No documentation found Improvements
JSON All of v2.1.336
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.336,
ImprovementsSection of the release

Unclear Whether this check always runs or only under some condition is not clear.

What

When 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:

  • A filter driver is in play. A filter driver is a git setting that runs a program on a file's contents.
  • The git settings look unusual.

Before, Claude Code only checked whether a clean filter applied to the file.

Why

This 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.

Read from
Names in the bundlecore.autocrlfattr.tree
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether this check always runs or only under some condition is not clear.

See this entry in the whole of v2.1.336 →

Feedback