Skip to content

v0.1.42

Latest

Choose a tag to compare

@eharriett0 eharriett0 released this 25 Nov 17:32
65cad69

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 status fails 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 status marks it UNREAD with 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: unread and not_compared (uncommitted, some_uncommitted or all) on each window in wt status --json and MCP wt_status; unread_windows in wt check --json and MCP wt_check.
    • git status can 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.
  • 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 .git file.
    • Listed by its git directory: the main work tree of a --separate-git-dir repository, 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).