feat: add copy functionality#23
Merged
Merged
Conversation
AndrewADev
force-pushed
the
claude/thirsty-brown-190e0d
branch
from
May 17, 2026 19:54
723e471 to
1113ec4
Compare
AndrewADev
force-pushed
the
claude/thirsty-brown-190e0d
branch
4 times, most recently
from
June 6, 2026 15:05
f9ad729 to
fa5f6a8
Compare
AndrewADev
marked this pull request as ready for review
June 6, 2026 15:33
AndrewADev
marked this pull request as draft
June 6, 2026 15:33
Add support for a `worktree-init` event, which fires when a branch is created for the first time in a worktree context. Also adds a "copy" function, meant to be combined with the `worktree-init` event. Taken together, they allow bootstrapping the config for a worktree context from existing config files.
AndrewADev
force-pushed
the
claude/thirsty-brown-190e0d
branch
from
June 6, 2026 15:33
fa5f6a8 to
ffddec3
Compare
AndrewADev
marked this pull request as ready for review
June 6, 2026 15:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for bootstrapping/seeding a
.envfile, via a new directive,copy.In brief:
copyon a tracked.envfile to copy it when checking out a branchcopyonly 'seeds' and won't overwrite existing files. (There is anoverwrite: trueoption available though)Usage
A simple setup (copying over
.envto e.g. new worktrees) would look like this: