Skip to content

feat: wt create --temp <ref> — a detached throwaway worktree - #65

Merged
sahil-noon merged 4 commits into
mainfrom
261123-gcos-create-temp-detached-worktree
Nov 23, 2026
Merged

sahil-noon merged 4 commits into
mainfrom
261123-gcos-create-temp-detached-worktree

Conversation

@sahil-noon

@sahil-noon sahil-noon commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Meta

Change ID Type Confidence Plan Review
gcos feat 3.5/5.0 11/11 tasks, 21/21 acceptance ✓ ✓ 1 cycle
Impact +/− Net
raw +1853 / −60 +1793
true +1063 / −14 +1049
└ impl +235 / −14 +221
└ tests +828 / −0 +828

excludes fab/, docs/ · generated by fab-kit v2.31.0

Pipeline: intake ✓ → apply ✓ → review ✓ → hydrate ✓ → ship ✓

Summary

Adds wt create --temp <ref>, which makes a throwaway worktree with a detached HEAD at a given commit. It never creates a branch, so it can't pollute one. PR surgery (resolving conflicts, restacking, inspecting a commit) currently hand-rolls git worktree add --detach outside wt's layout, naming, rollback and listing. Step W5 of plan 26-11-23-worktree-base-receipts.md.

Changes

  • wt create --temp <ref>: detaches at the resolved commit, names the worktree tmp-*, creates no branch and no git config, and exits 2 when combined with the positional branch, --checkout, --reuse or --base
  • Init is skipped for --temp by default; the new --init flag opts in
  • wt list --json gains a temp field on every record; temp records have branch: null
  • wt delete does no branch handling for detached worktrees
  • Specs, skill bundle, and help-dump updated

🤖 Generated with Claude Code

@sahil-noon
sahil-noon marked this pull request as ready for review November 23, 2026 16:09
@sahil-noon
sahil-noon force-pushed the 261123-gcos-create-temp-detached-worktree branch from fa849b5 to 6b4c2af Compare November 23, 2026 16:12
@sahil-noon
sahil-noon force-pushed the 261123-gcos-create-temp-detached-worktree branch from 6b4c2af to 7be2cda Compare November 23, 2026 16:18
@sahil-noon
sahil-noon merged commit f2b168e into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants