{"version":"2.1.319","anchor":"git-diff-stat-calls-now-end-with-a-separator","canonical_anchor":"git-diff-stat-calls-now-end-with-a-separator","heading":"Git diff stat commands now end options with --","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/git-diff-stat-calls-now-end-with-a-separator","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Git diff stat commands now end options with --\n\nClaude Code's git diff --shortstat and --numstat calls now end with --, so a branch or ref name cannot be read as an option or path\n\n**What**\n\nClaude Code runs git to count changed lines. Its `git diff --shortstat` and `--numstat -z` calls now end their arguments with `--`. In git, `--` marks the end of options. Before, nothing followed the ref argument.\n\n**Why**\n\nA branch or ref name that starts with a dash, or looks like a file path, can no longer be read as an option or confused with a path. This is a small hardening against option injection through ref names.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}