worktrees: rebase requires onto= even though the advertised use is "onto fresh main" - default it to the remote default branch #175
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#175
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?
The other half of today's retry pair (see #174). First attempt at a worktree rebase failed with:
But the tool's own description sells the action as "rebase a worktree's branch onto an updated base / onto fresh main" - the overwhelmingly common case has exactly one right answer: the remote default branch. Making
ontorequired means every agent pays a failed round-trip to learn a value the tool could have resolved itself (it already asks the forge for the true default branch elsewhere, e.g. finish does, instead of trusting a stale origin/HEAD).Proposed:
ontobecomes optional; omitted, it resolves toorigin/<default branch>(forge-checked, same as finish's default-branch resolution).onto=for the explicit-base case (stacked branches, release branches).Acceptance:
action=rebasewith noontorebases onto the forge-resolved default branchonto=still honored