Skip to content

v0.1.35

Choose a tag to compare

@eharriett0 eharriett0 released this 16 Nov 22:56
· 20 commits to main since this release
eb39fcc

Eleven merges since v0.1.34, from two passes over the open wt bugs. Each was adversarially reviewed, mutation-tested and smoke-tested end to end.

merge-pr

  • #179: merge-pr said verdict=ok while the PR's checks were still pending or had never started, and --admin bypasses GitHub's required checks too. It now reads the head commit's checks and what the base branch requires (branch protection and rulesets), refuses when they are not green (asks at a terminal), and pins the merge to the commit it read. --checks-ok merges anyway; --bypass and --admin don't.
  • #178: at the deploy gate, a GitHub Actions incident on githubstatus.com is now a warning. It never refuses.
  • #196: the close check now reads the squash SUBJECT too, and a merge that gh reported as failed after it had in fact merged (-- -d with the branch checked out) is verified and cleaned up like any other.
  • #217: with the account's REST quota used up, merge-pr called a 6-line diff EMPTY and pointed at --bypass, and every read said "gh is not available or not authenticated". It now says the rate limit is used up and when it lifts, and reads the diff, file list and PR state over GraphQL, which has its own quota. A diff it cannot read is refused as "could not be read", never as empty. wt doctor shows a rate-limited host as logged in.

Collision detection

  • #199: edits on adjacent lines (no unchanged line between them) graded low, but git's merge conflicts on them. Edits are now graded by git's own 3-way rule, aligned the way merge-ort aligns them.
  • #200, #204: a file with a non-ASCII name never collided (git quoted it), and a name with glob characters or a leading : matched the wrong files. Paths are now read NUL-separated and passed to git literally.
  • #201: wt check and the edit hooks now read a path argument the way the filesystem does. A relative path through a symlink, . at the top level, a path into another worktree and a name typed in another case all find the other window's edit. Both edit hooks name every window editing a file. Behaviour change: a wt check path outside every worktree of the repository (including one through an in-repo symlink to outside) is refused with exit 64 instead of reported clear.

Data safety

  • #177: wt discard <name> drops one deliberately throwaway worktree, and only drops unpushed commits with --drop-commits.
  • #208, #210: clean, merge-pr's auto-clean and release --clean deleted untracked files hidden by status.showUntrackedFiles=no, and edits hidden by --assume-unchanged, --skip-worktree or core.ignoreStat. Those now count as uncommitted work.
  • #198: wt new / wt claim could re-attach a stale or diverged same-named local branch. They now check it against origin first and never lose work on a rollback.

Coordination and auth

  • #211: records written before wt knew sessions read as every session's own, so wt holds offered all-clear for other sessions' holds. Only a session's own records are "yours" now, and releasing anything else asks first. wt prune-coord --legacy clears the old backlog.
  • #203: wt doctor tells an unreachable host from a dead token (gh 2.81+), and decides each host by its active account.