{"version":"2.1.269","anchor":"worktree-registration-cleanupdedup-helpers-added","canonical_anchor":"worktree-registration-cleanupdedup-helpers-added","heading":"Worktree registration cleanup\/dedup helpers added","tier":"internal","area":"Git Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/worktree-registration-cleanupdedup-helpers-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### Worktree registration cleanup\/dedup helpers added\n\nNew internal helpers clean up stale git worktree registrations\n\n**What**\n\nTwo new helper functions manage bookkeeping for git worktrees (linked working copies of a repository): one decides whether a worktree entry should be kept or removed, checking whether it's the main worktree, belongs to another machine, resolves through a symlink, or no longer exists on disk; another checks that the local git version is at least 2.36 before relying on certain worktree command behavior.\n\n**Why**\n\nThis should reduce stale or invalid worktree entries lingering in Claude Code's records, and avoids relying on git worktree behavior that older git versions don't support.\n\n- Area: Git Worktrees\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}