{"version":"2.1.332","anchor":"diff-stats-fetch-tries-one-combined-git-diff-first","canonical_anchor":"diff-stats-fetch-tries-one-combined-git-diff-first","heading":"Changed-file counts now try a single git command first","tier":"internal","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/diff-stats-fetch-tries-one-combined-git-diff-first","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Changed-file counts now try a single git command first\n\nClaude Code now tries one combined git diff call to count changed files and lines, and falls back to two calls when the output is too big\n\n**What**\n\nTo work out how many files and lines have changed in a repository, Claude Code used to run `git diff --shortstat` and then a separate `git diff --raw --numstat`. It now tries one combined `git diff --raw --numstat --shortstat` call, with a limit on how much output it will read.\n\nIf the output goes over that limit, Claude Code falls back to the old two-step approach. It remembers per repository whether the single call works, so it does not keep retrying one that overflows.\n\n**Why**\n\nRunning one git command instead of two means less work, which matters most in large repositories.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}