{"version":"2.1.269","anchor":"new-git-worktree-linkjunction-detection-utilities","canonical_anchor":"new-git-worktree-linkjunction-detection-utilities","heading":"New git-worktree link\/junction detection utilities","tier":"internal","area":"Git Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/new-git-worktree-linkjunction-detection-utilities","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### New git-worktree link\/junction detection utilities\n\nNew checks more reliably detect genuine git worktrees, including broken links on Windows\n\n**What**\n\nClaude Code now has more thorough logic for detecting git worktrees (linked copies of a git repository that share history). It parses the output of `git worktree list` to confirm a directory is a genuine, uniquely matching worktree, normalizes file paths (handling macOS's Unicode normalization and trailing slashes), and on Windows walks up parent directories checking for reparse points or `.lnk` shortcut files to determine whether a worktree link is \"clear\", \"missing\", or otherwise broken.\n\n**Why**\n\nThis makes worktree detection more reliable across platforms, particularly on Windows where symbolic-link-like mechanisms work differently, reducing false positives or negatives when Claude Code needs to know whether it's operating inside a worktree.\n\n- Area: Git Worktrees\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}