fix: exclude VCS metadata directories from copy-ignored#1250
Merged
Conversation
`wt step copy-ignored` now skips VCS metadata directories (.jj, .hg, .svn, .sl, .bzr, .pijul) that are colocated with git. These directories contain internal state tied to a specific working directory and copying them between worktrees breaks the colocated VCS. Closes #1249 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
is there any distinction between |
Collaborator
Author
|
They're both sources of ignore patterns that
In practice, That said, this doc line predates this PR — I can simplify it to just say "Handles all gitignore sources ( |
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.
Summary
wt step copy-ignorednow skips VCS metadata directories (.jj,.hg,.svn,.sl,.bzr,.pijul) that are colocated with git.jjdirectory).gitis implicitly excluded (never reported bygit ls-files), but other colocated VCS tools need explicit exclusionCloses #1249
Test plan
test_copy_ignored_skips_vcs_metadata_dirsverifies.jjand.hgare excluded while regular ignored files (.env) are still copiedcopy-ignoredtests pass unchangedstep.mdand skill reference updated automatically)🤖 Generated with Claude Code