Feature request / just a thought: best of both worlds: worktrees and gitbutler workspace #14810
Replies: 3 comments 3 replies
|
Thanks so much for sharing! Worktrees came up a lot lately! And I believe it will all be unlocked with single-branch-mode, which at least allows GitButler to be opened on a worktree directly, i.e. a branch that isn't
This is an interesting idea and it's something that I think wouldn't be implemented at first. It would be that a worktree is created for branches that are in the GitButler workspace. Agents will work in their respective branch and use Having agents see the workspace commit, work on that in an isolated fashion, and absorb the changes into their respective branches is a great idea for letting them work together. Both versions have their merit, and I think both should be able to work. |
|
I put together a rough demo of how worktrees could look in the future. I would be curious to see what you think about it. tui-worktrees.mov |
|
Hey @Byron & @Caleb-T-Owens , really cool how quickly you picked up on this ! Caleb, thank you for the demo and the video - really insightful ! IMHO I would have expected the file to remain on the worktree as well and not be moved over to the workspace. The idea is more to keep somewhat separate areas where the agents can work independently until they are done, and once they commit things appear in the workspace (unified state across all applied lanes, essentially from there on existing gitbutler philosophy). Instead of tying the propagation to the worktree to committing, it could already be sufficient to simply stage stuff to a lane -- this would give even more control and thinking about it I would actually even prefer that over commit-based propagation. Now clearly: we'd have 2 versions on disk of the same file, so if someone came to the idea to modify the file in the workspace, that might be a bit icky ... would symlinks or a back-propagation option in case of such modifications be an option ? How do you feel about this ? Thank you & BR ! |
Uh oh!
There was an error while loading. Please reload this page.
Hey folks,
working with gitbutler really made my life tremendously easier compared to earlier times with pure git.
One thing, however, keeps me struggling -- and maybe I didn't understand how to ideally set things up; in which case I would love to hear your recommendations.
Here's the challenge:
The idea:
What do you think?
Thank you & BR
f
All reactions