{"version":"2.1.330","anchor":"worktree-dirty-check-consults-extra-git-state","canonical_anchor":"worktree-dirty-check-consults-extra-git-state","heading":"Check for unsaved changes in a worktree now looks at extra paths","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/worktree-dirty-check-consults-extra-git-state","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Check for unsaved changes in a worktree now looks at extra paths\n\nThe check for uncommitted changes in a worktree now adds extra paths from a new git lookup and is skipped if that lookup fails\n\n**Unclear.** Which extra paths are added, and so which files now count toward the check, is not stated.\n\n**What**\n\nA worktree is an extra checkout of a git repository in its own folder. Claude Code checks whether a worktree has changes that are not yet staged, using a git command that compares files on disk with git's records.\n\nThat check now runs a separate lookup first. It adds some paths from that lookup to the files the git command looks at. If the lookup does not succeed, the check is skipped. Before, the git command always ran on a fixed path.\n\n**Why**\n\nThis may change when Claude Code decides a worktree has unstaged changes.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}