worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Feature Discussion - Multi Repo Support

Open richraid21 opened this issue 8 months ago • 2 comments

I'd like to start a discussion on if you'd be open to a feature that supports resolving multiple repositories based on location for the purposes of creating multiple worktree calls (1 per package) whenever a new feature is created.

Example

Folder Layout

my-big-project/
        my-api/        <- git repo 1
        my-ui/        <- git repo 2
        my-common-models/        <- git repo 3

Pseudo-Code

`wt` invoked:
    if multi_space.enabled:
        use configured resolver() to find all repos for project:
              [1...n] normal `wt` operations

There's definitely some challenges here because the TUI assumes a single project (by divergence status, displaying short commit id, descriptions, etc). The other option is to build a separate TUI that stitches together and dispatches wt commands as a wrapper.

Curious to hear your thoughts on this. I'd be willing to work on it -- but wanted to hear first.

-Rich

richraid21 avatar Mar 08 '26 16:03 richraid21

Thanks for the suggestion! This appears to be related to #980, which covers multi-repo workflows including repo picking, cross-repo worktree listing/switching, and centralized worktree layouts. That issue also includes a concrete wrapper approach and discussion of potential upstream support.

I'll leave it to a maintainer to confirm and link them.

worktrunk-bot avatar Mar 08 '26 16:03 worktrunk-bot

Not sure how I missed that open issue. We can combine this into there.

richraid21 avatar Mar 08 '26 16:03 richraid21