Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

Diff/gitdir baseline computation made lazy and cached

Repository-diff computation now happens lazily and is cached instead of running eagerly upfront

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal0worth watching, 1 to 5
AreaGitwhat it touches
KindInternal Changesin v2.1.274,
Under the hood

Repository-diff computation now happens lazily and is cached instead of running eagerly upfront

What

The internal helper that computes repository diffs no longer eagerly computes the git baseline it needs as soon as it runs. Instead, it computes and caches that baseline only when fetchDiff is actually called. A related function, headKeyOf, now explicitly passes a null baseline rather than a computed one.

Why

This avoids doing potentially unnecessary work computing a git baseline when it isn't needed, improving efficiency for code paths that don't end up calling fetchDiff.

See this entry in the whole of v2.1.274 →

Feedback