bug(finish): a merged worktree stays on disk until a second call removes it #691
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When I finish a branch that lives in a linked worktree,
madt_finishmerges the PR and leaves the worktree on disk. Removing it takes a second call,madt_worktrees action=remove. In a batch of 40 small changes across repos, that is 40 extra calls, and a skipped call leaves a stale worktree and branch behind.Ask
After the merge lands,
madt_finishremoves the linked worktree that has the finished branch checked out, but only when the ADR 0029 proof holds:A failed forge read, a dirty tree, or a missing proof leaves the worktree in place, and the result says why.
Decision records
madt_finishplus worktree cleanup withmadt_worktrees action=remove. This change folds the cleanup into finish, so ADR 0019 needs a dated amendment to that sentence.Cases
Acceptance
Depends on #666.