Repository navigation
How do you create and group one worktree per repo for a cross-repo feature? #50773
|
I'm looking for a repeatable Orca workflow for one feature that spans three independent Git repositories:
For each feature, I'd like to create one Git worktree and branch per participating repo, starting from that repo's own base branch. In Orca, I'd like one feature entry in the sidebar with the three worktrees underneath it, so I can open each worktree and see its changes in Git without having to remember which branch belongs to which feature. I've read the docs on project groups and folder workspaces and found the related feature requests #21118 and #34002. From the docs, it looks like a Folder Workspace can act as the parent of repo worktrees. What's the recommended workflow in Orca today? Can I select the three repos once and have Orca create and attach their worktrees in one step, or should I create a Folder Workspace and then create or attach each worktree individually? If the latter is the intended approach, I'd appreciate a short example using the UI or CLI, including whether externally created worktrees at custom paths can be attached the same way. |
Replies: 3 comments
|
In Orca today, a Folder Workspace ( ❌ Before (Creating worktrees independently without a parent Folder Workspace)# Creates 3 separate top-level sidebar entries with no shared feature group:
orca worktree create --repo id:<gui-repo-id> --name feat-dispatch --branch feat/dispatch
orca worktree create --repo id:<api-repo-id> --name feat-dispatch --branch feat/dispatch
orca worktree create --repo id:<docker-repo-id> --name feat-dispatch --branch feat/dispatch✅ After (Grouping all 3 repo worktrees under one Folder Workspace)1. Create or attach new worktrees under the Folder Workspace (CLI or UI)Create a Folder Workspace in the sidebar for your feature (or keep it active in the UI, where new worktrees default to nesting under the active Folder Workspace), then pass # Find the folder:<id> key if needed:
orca worktree ps --json
# Create one worktree per repo nested under the Folder Workspace:
orca worktree create --repo id:<gui-repo-id> --name gui-dispatch --branch feat/dispatch --parent-worktree folder:<folderId>
orca worktree create --repo id:<api-repo-id> --name api-dispatch --branch feat/dispatch --parent-worktree folder:<folderId>
orca worktree create --repo id:<docker-repo-id> --name docker-dispatch --branch feat/dispatch --parent-worktree folder:<folderId>2. Attaching externally created
|
|
Thanks, that helps! I’m looking for a simple way to implement features that span multiple repositories and review the changes for one feature at a time. Is this the intended workflow in Orca? Create a Folder Workspace for the feature, using an empty directory. Can I also use the initially empty directory for feature-wide files, such as a spec, shared notes, or scripts that operate across the worktrees? Is there a convention for what to keep there? |
|
Yes — that workflow matches how Orca's Folder Workspaces and lineage are designed to work, with a few important details from how Orca wires the parent directory and agent context under the hood: 1. Does the agent in the parent Folder Workspace automatically know about attached child worktrees?
2. How the Folder Workspace directory works (and where to keep feature-wide files)
3. Note on external
|
Yes — that workflow matches how Orca's Folder Workspaces and lineage are designed to work, with a few important details from how Orca wires the parent directory and agent context under the hood:
1. Does the agent in the parent Folder Workspace automatically know about attached child worktrees?
folder:<folderId>). If you ask the parent agent to runorca worktree create --repo <repo> --name <feature>, Orca automatically infers the Folder Workspace as the parent (capture.source: "terminal-context"/"active-workspace") e…