{"version":"2.1.315","anchor":"git-diff-stat-uses-cut-bases","canonical_anchor":"git-diff-stat-uses-cut-bases","heading":"Git change summaries try the per-file count first","tier":"internal","area":"Git Integration","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/git-diff-stat-uses-cut-bases","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Git change summaries try the per-file count first\n\nClaude Code now runs `--numstat` first for git change summaries and uses `--shortstat` only where the comparison was too large before\n\n**What**\n\nWhen Claude Code summarises how many lines changed in a git repository, it now asks git for the per-file count (`--numstat`) first. It only uses the shorter overall count (`--shortstat`) for comparison points that were too large to handle before. A comparison point is the earlier commit the changes are measured against. Before, it always ran `--shortstat` first.\n\n**Why**\n\nThis means fewer git commands are run to build the summary.\n\n- Area: Git Integration\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}