Repository navigation
A window wt can't read is now named, never shown as "(no changes)" or counted in a clear.
- #254 (#253): unread windows. When
git statusfails in a window (a branch holding an object the repository lacks, an unreadable index, a directory git can't enter, a checkout git no longer recognises), wt used to show it as "(no changes)" and call every path clear of it.- Now
wt statusmarks itUNREADwith the reason.wt check, both edit hooks, the per-turn context, pre-commit, pre-push and MCP name it, and every clear says it covers only the windows wt could read. Being unread never blocks. - JSON:
unreadandnot_compared(uncommitted,some_uncommittedorall) on each window inwt status --jsonand MCPwt_status;unread_windowsinwt check --jsonand MCPwt_check. git statuscan also exit 0 yet skip paths it could not read (a directory it can't list or search), naming them only on stderr. wt reads that and names the window as partly unread, keeping what it read. A line counts only when it names a path in that window or one of its submodules.- An unread window that committed a change to a path is still graded where git can read its branch; its unreadable working copy makes that grade indeterminate, so HIGH, tagged
working tree unread.
- Now
- Which entries count:
- Not unread: a worktree whose directory was deleted (prunable), and the bare repository of a bare-plus-worktrees layout.
- Unread: a locked worktree on an unmounted volume, a directory git can't enter, and a worktree nested in a bare repository that lost its
.gitfile. - Listed by its git directory: the main work tree of a
--separate-git-dirrepository, and a submodule's checkout with linked worktrees. From inside, wt reads it as itself; v0.1.41 graded a submodule checkout's own edit as a collision.
- #255: a nested worktree without its own
.git(deleted, or an unmounted volume's empty mount point, locked or not) was read as the work tree around it: "(no changes)" under the enclosing branch, or that window's edits taken as its own. It is now unread, under its own branch and claim, with nothing attributed to it. - Paths are read verbatim: a worktree path ending in a space was trimmed to one that doesn't exist, and its edits read clear.
- Known: #256 (compare an unreachable window's commits from the repository) and #257 (a listed path that is not this repository's work tree, such as a symlinked
.git).