{"version":"2.1.327","anchor":"git-diff-in-the-commit-command-now-uses","canonical_anchor":"git-diff-in-the-commit-command-now-uses","heading":"Commit command's diff check can no longer mistake a file for a branch","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/git-diff-in-the-commit-command-now-uses","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Commit command's diff check can no longer mistake a file for a branch\n\nThe commit command now runs `git diff HEAD --`, so a file named like a branch or tag no longer confuses it\n\n**What**\n\nWhen the commit command gathers information about your changes, it now runs `git diff HEAD --` instead of `git diff HEAD`. The `--` tells git that anything after it is a file path, not the name of a branch or tag.\n\n**Why**\n\nThis is a small robustness fix. In a project with a file that has the same name as a branch or tag, git could misread the command, and that can no longer happen.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}