enhance: worktree and branch UI improvements, rename remote branch, remove tracking reference#2346
Conversation
…e remote on branch rename; show repo name in toolbar
…empty directories
… checked-out branch
…add tracking change guard
|
First of all, keep your PR focus on a single issue.
It's not necessary. You can change the upstream from
There's no plan to add this feature to I want all the
I'd like to let user's know why this branch can not be deleted directly.
Not planed. If you have more than one repositories that have the same name, you can rename it in
Not planned. In fact, I just removed the
Not planned. I've removed the button labels since |
Summary
Branch Operations
Rename remote branch: New "Rename..." context menu on remote branches opens a popup that pushes the current commit to a new branch name on the remote, deletes the old one, and updates the tracking of any local branches that tracked the old remote branch.
Remove tracking reference: New "Remove Tracking Reference" context menu item on local branches that have an upstream set. Calls
git branch --unset-upstreamdirectly.Rename local branch with remote: Checkbox "Also rename remote branch" in the rename dialog. Fixes:
CanRenameRemoteguard)Delete remote branch: When deleting a remote branch directly, all local branches that were tracking it get their upstream unset automatically.
Delete branch with worktree: Confirmation checkbox to force-remove the worktree before deleting the branch (avoids git's rejection of deleting a branch checked out in a worktree).
Toolbar
Localization