Skip to content

feat: Recorded base — branch.<name>.wt-base[-sha] on create; base/base_sha in wt list --json - #66

Merged
sahil-noon merged 5 commits into
mainfrom
261123-o7jg-create-recorded-base-list-json
Nov 23, 2026
Merged

sahil-noon merged 5 commits into
mainfrom
261123-o7jg-create-recorded-base-list-json

Conversation

@sahil-noon

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

Copy link
Copy Markdown
Collaborator

Meta

Change ID Type Confidence Plan Review
o7jg feat 4.8/5.0 8/8 tasks, 17/17 acceptance ✓ ✓ 1 cycle
Impact +/− Net
raw +972 / −23 +949
true +530 / −9 +521
└ impl +143 / −6 +137
└ tests +387 / −3 +384

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

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

Summary

Nothing recorded what a worktree's branch was cut from, so a PR base had to be told twice downstream and no later tool could derive it. wt create now records the base in the branch's own git config (branch.<b>.wt-base / wt-base-sha) for branches it creates, and wt list --json exposes it as base / base_sha — step W2 of fab/plans/sahil/26-11-23-worktree-base-receipts.md, stacked on #64 (W1).

Changes

  • Record the base on branch creation (src/internal/worktree/)
  • wt list --json gains base and base_sha
  • create.go wiring
  • Tests
  • Docs

🤖 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 changed the base branch from 261123-xhgg-create-fetch-json-receipt to main November 23, 2026 16:36
@sahil-noon
sahil-noon force-pushed the 261123-o7jg-create-recorded-base-list-json branch from e115c1a to d89fd16 Compare November 23, 2026 16:36
@sahil-noon
sahil-noon marked this pull request as ready for review November 23, 2026 16:37
@sahil-noon
sahil-noon merged commit bf8a7db 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