{"version":"2.1.337","anchor":"git-untracked-check-falls-back-on-pathspec-errors","canonical_anchor":"git-untracked-check-falls-back-on-pathspec-errors","heading":"Claude Code now checks git's error before calling a file untracked","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/git-untracked-check-falls-back-on-pathspec-errors","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Claude Code now checks git's error before calling a file untracked\n\nClaude Code now calls a file untracked only when git's error is about the file path, and uses another check otherwise\n\n**Unclear.** It is not clear what the separate check decides when git returns a different error.\n\n**What**\n\nClaude Code sometimes asks git whether a file is untracked, meaning git is not keeping a history of it. Before, any \"no\" answer from git counted as untracked.\n\nNow a file counts as untracked only when git's error message starts with `error: pathspec`, which is git's complaint about a file path. Any other error goes to a separate check. If git cannot be started at all, that separate check is also used instead of a fixed answer.\n\n**Why**\n\nIt is a small change to how Claude Code decides which files git is tracking.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}