🔧 chore(gwm): add .gwm.toml with Zed-aligned worktree base#11
Merged
Conversation
This repo had no .gwm.toml, so gwm fell back to {home}/cc-worktree/{repo},
which doesn't match Zed's native worktree location. Add the same
[worktree] config as the other repos: base = {repo_parent}/worktrees/{repo},
mirroring Zed's default git.worktree_directory = "../worktrees" (Zed
resolves it relative to the repo then appends the repo dir name —
zed-industries/zed#53673). Uses the {repo_parent} placeholder (gwm-cli#176).
Also isolate node_modules (no cross-worktree symlink), the Nuxt analog of
the Laravel repos' vendor/ isolation.
Closes #10
There was a problem hiding this comment.
Pull request overview
Adds repository-local gwm configuration so new Git worktrees are created in the same directory layout Zed expects, while ensuring node_modules is not shared/symlinked between worktrees.
Changes:
- Add
.gwm.tomldefining a Zed-aligned[worktree].base({repo_parent}/worktrees/{repo}). - Standardize worktree folder/branch naming via
path_patternandbranch_pattern. - Prevent cross-worktree
node_modulessharing via[[bootstrap.no_symlink]].
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Adds a
.gwm.tomlso gwm worktrees land at Zed's native location instead of the default{home}/cc-worktree/{repo}. Same[worktree]config as api-rest / front / gwm-cli:base = "{repo_parent}/worktrees/{repo}", mirroring Zed's defaultgit.worktree_directory = "../worktrees"(Zed resolves it relative to the repo then appends the repo dir name — zed-industries/zed#53673). Uses the{repo_parent}placeholder (gwm-cli#176).Also isolates
node_modules(no cross-worktree symlink) — the Nuxt analog of the Laravel repos'vendor/isolation. The Laravel-specific bootstrap (sqlite.env.testing, composer, HTMLPurifier cache) is intentionally not copied.Closes #10
Type
Tests
~/Projects/Perso/worktrees/kbrdn.dev-v2.