Claude Code v2.1.222 ·
Git diffs ignore external diff drivers and textconv filters
Diffs now ignore your repo's custom diff drivers, so Claude sees the real file contents.
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.222,
ImprovementsSection of the release
What
Diff reads now pass --no-ext-diff and --no-textconv, so a repo's own git configuration cannot change the content Claude sees when computing patches.
Details
- New exported constant
RAW_BLOB_DIFF_FLAGS = ["--no-ext-diff", "--no-textconv"]. - Spread into the
git diff invocations used for whole patches and per-file hunks. - Includes the
--no-optional-locks diff calls, which previously passed no such flags.
Evidence
RAW_BLOB_DIFF_FLAGS
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.222 →