Why does a worktree item only open an new tab? I’d much rather see worktrees more like branches where if I click a worktree it just navigates to the branch. If I double click it switches the view that branch rather then open a new tab. Optionally I could open in new tab, but ideally one tab for the whole repo with the ability to peak into any branch/worktree. A worktree or branch are a lot alike so I don’t see why the product experience would have to differ.
Worktrees more useful
bschaaf
#2
Worktrees have a separate index and a separate HEAD. They’re an entirely separate concept to branches. You can already view a branch by clicking on it. If you want to check it out, then git needs to know which workspace to use. Same if you’re using the undo/redo functionality, merging, cherry-picking, resetting, etc.
A lot of the rest of the UI is also designed around displaying the state of a single worktree. The HEAD at the top of the window, the highlighted branch in the locations tab and the staging section in the commit graph.
In short, I don’t think what you’re suggesting makes sense given how worktrees function.
0 Likes