Claude Code v2.1.333 ·
Stricter checks on git diff ranges and remote hosts
Git diff ranges with .. inside a ref name or ending in a git describe style suffix are now refused
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
A diff range names two points in a git history to compare, such as main..feature. Claude Code now refuses some ranges it used to accept:
- Ranges where a ref name itself contains a run of dots (
..).
- Ranges that end in a
git describe style suffix, a -g followed by a commit hash.
The host taken from a git remote address is now also refused when it fails an extra check.
Why
Some diff ranges that worked before will now be refused, so you may need to write them with plain branch names or commit hashes.
See this entry in the whole of v2.1.333 →