Skip to content

feat: carry explicit local files into worktrees - #20

Open
chenquan wants to merge 3 commits into
mainfrom
feat/worktree-local-file-overlay
Open

feat: carry explicit local files into worktrees#20
chenquan wants to merge 3 commits into
mainfrom
feat/worktree-local-file-overlay

Conversation

@chenquan

@chenquan chenquan commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add explicit per-repository local.paths and repeatable --local bootstrap declarations.
  • Discover selected untracked or ignored files safely, preview overlay actions, and materialize them atomically without overwriting.
  • Persist pending/complete overlay snapshots for recovery while preserving manual-worktree and delete safety boundaries.
  • Update README, bundled Taskflow skill, OpenSpec artifacts, and unit/E2E/binary coverage.

Validation

  • go test ./...
  • go vet ./...
  • go test -race ./...
  • git diff --check
  • openspec validate worktree-local-file-overlay --strict --no-interactive
  • GOOS=windows GOARCH=amd64 go build ./...

@chenquan
chenquan force-pushed the feat/worktree-local-file-overlay branch 2 times, most recently from 8c3a198 to eb71644 Compare September 2, 2026 00:18
@chenquan
chenquan force-pushed the feat/worktree-local-file-overlay branch from eb71644 to d7ab825 Compare September 2, 2026 00:22
Replace the explicit local.paths overlay with a creation-time copy of the
source working directory. New worktrees are registered with
git worktree add --no-checkout, get their index populated from HEAD, and
then receive the complete source snapshot (tracked modifications,
untracked and ignored files) with all .git entries excluded and
source/target containment rejected. A repository-level pending/complete
source-copy status in the ownership manifest makes interrupted copies
retryable: pending targets are re-copied, and missing ones are
re-registered first. Completed copies are never refreshed and matching
manual worktrees are never populated.

Supersedes and retires the worktree-local-file-overlay change artifacts.
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.

1 participant