Skip to content

feat: support wildcard worktree layout (repo = "*")#31

Open
javimb wants to merge 3 commits into
cloudmanic:mainfrom
javimb:feat/wildcard-worktree-layout
Open

feat: support wildcard worktree layout (repo = "*")#31
javimb wants to merge 3 commits into
cloudmanic:mainfrom
javimb:feat/wildcard-worktree-layout

Conversation

@javimb

@javimb javimb commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Adds repo = "*" support in worktree layout files to match any repo as a universal fallback — a "generic project template"
  • Implements 4-tier specificity scoring so repo-specific layouts always win over wildcards (repo+branch > repo-only > wildcard+branch > wildcard-only)
  • Documents the feature in the README with usage examples and specificity rules

Closes #29

Test plan

  • New TestMatchWorktreeLayoutWildcard covers all priority combinations (7 sub-cases)
  • Wildcard validation case added to TestWorktreeLayoutValidate
  • Wildcard file round-trip in TestLoadWorktreeLayouts
  • All existing tests pass unchanged (no regressions)
  • go test ./... passes

🤖 Generated with Claude Code

javimb and others added 3 commits June 29, 2026 10:21
Allow repo = "*" in worktree layout files to match any repo as a
universal fallback. Specificity ordering ensures repo-specific layouts
always win over wildcards.

Closes cloudmanic#29
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Generic project template

1 participant