Skip to content

feat: wt create --fetch and the --json receipt - #64

Merged
sahil-noon merged 2 commits into
mainfrom
261123-xhgg-create-fetch-json-receipt
Nov 23, 2026
Merged

sahil-noon merged 2 commits into
mainfrom
261123-xhgg-create-fetch-json-receipt

Conversation

@sahil-noon

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

Copy link
Copy Markdown
Collaborator

Meta

Change ID Type Confidence Plan Review
xhgg feat 3.0/5.0 13/13 tasks, 28/28 acceptance ✓ ✓ 4 cycles
Impact +/− Net
raw +2169 / −160 +2009
true +1458 / −93 +1365
└ impl +587 / −92 +495
└ tests +871 / −1 +870

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

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

Summary

wt create gains an explicit --fetch (fetch the base's remote before resolving --base, so callers stop hand-rolling git fetch + rev-parse) and a --json receipt (one JSON document on stdout carrying path, name, branch, base ref/SHA, mode and init outcome) replacing last-line path parsing. The new-branch start-point is now resolved once to a SHA and pinned. Step W1 of fab/plans/sahil/26-11-23-worktree-base-receipts.md.

Changes

  • --fetch flag (bool, default false)
  • Resolve the base to a SHA once; pin the new branch to it
  • --json flag (bool, default false) — the receipt
  • Tests (Constitution IV)
  • Docs (CLI ⇒ docs, same change)

🤖 Generated with Claude Code

@sahil-noon
sahil-noon force-pushed the 261123-xhgg-create-fetch-json-receipt branch from 9e2c638 to 2d74b03 Compare November 23, 2026 16:26
@sahil-noon
sahil-noon merged commit 40d8ad4 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