Skip to content

🔧 chore(gwm): add .gwm.toml with Zed-aligned worktree base#11

Merged
kbrdn1 merged 1 commit into
devfrom
chore/#10-gwm-zed-base
Jun 1, 2026
Merged

🔧 chore(gwm): add .gwm.toml with Zed-aligned worktree base#11
kbrdn1 merged 1 commit into
devfrom
chore/#10-gwm-zed-base

Conversation

@kbrdn1

@kbrdn1 kbrdn1 commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Description

Adds a .gwm.toml so 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 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 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

  • 🔧 Configuration

Tests

  • TOML parses cleanly; base resolves to ~/Projects/Perso/worktrees/kbrdn.dev-v2.

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
Copilot AI review requested due to automatic review settings June 1, 2026 09:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.toml defining a Zed-aligned [worktree].base ({repo_parent}/worktrees/{repo}).
  • Standardize worktree folder/branch naming via path_pattern and branch_pattern.
  • Prevent cross-worktree node_modules sharing via [[bootstrap.no_symlink]].

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kbrdn1
kbrdn1 merged commit 22eaae7 into dev Jun 1, 2026
6 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