{"version":"2.1.281","anchor":"worktree-exit-branch-shown-only-when-present-hook-worktre","canonical_anchor":"worktree-exit-branch-shown-only-when-present-hook-worktre","heading":"\/worktree exit: branch shown only when present; hook-worktree status check compiled out","tier":"notice","area":"Worktrees","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/worktree-exit-branch-shown-only-when-present-hook-worktre","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### \/worktree exit: branch shown only when present; hook-worktree status check compiled out\n\nLeaving a worktree now mentions the branch only when there is one; a planned status check is present but inactive\n\n**What**\n\nA worktree is a separate working copy of a git repository. When you leave one and keep it, the message now adds \" on branch X\" only when the worktree has a branch, so no empty branch name is shown.\n\nThere is also new code that would first ask a worktree created by a hook whether it moved or changed, with a \"checking\" state while it waits. In this build that code can never run.\n\n**Why**\n\nThe keep message is accurate for worktrees without a branch. The hook check has no effect yet.\n\n- Area: Worktrees\n- Names: `\/worktree`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}