-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
This behavior confused me a lot and I had to look in the SourceGit code to understand it:
- I was no longer able to use the '
Fast forward to origin/master
' context-command on my localmaster
(tracking) branch. - The reason was that I had added (and forgotten) a separate
worktree
for that branch, while I was working on thedevelop
branch in the original repo-clone (while also havingmaster
checked-out there since earlier on). - When there's a
worktree
for alocal branch
, the mentionedFast forward
context-command is simply hidden from the context-menu. - I found this very confusing, and I don't see why I shouldn't be able to fast-forward a local branch EVEN THOUGH there's also a separate worktree for it?
- Also, there was no visible indication to explain why the context-command was hidden from the menu on that specific branch.
Suggestions:
Allow the 'Fast forward to origin/master
' context-command on local branches regardless of worktree associations, since it should be a harmless command to use in any case.- Also,
add an extra context-commandrenameCheckout
to 'Switch to linked worktree
' on local branches that are checked out in linked worktrees. - Finally, add some visual indication, or at the very least an indication in the tooltip on such a branch, that it is "special" by being checked out in a linked worktree.
BONUS-feature: Add more explicit ahead/behind-indicators in the tooltip for local branches, to help us remember which of the up/down arrows means which direction. 😉
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request