-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
DeleteRemote: Add an option to delete a local tracking branch #11661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeleteRemote: Add an option to delete a local tracking branch #11661
Conversation
dcfaf72
to
799690f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would it work if a user were to select multiple remote branches?
DeleteLocalTrackingBranch.Name = "DeleteLocalTrackingBranch"; | ||
DeleteLocalTrackingBranch.Size = new Size(197, 19); | ||
DeleteLocalTrackingBranch.TabIndex = 3; | ||
DeleteLocalTrackingBranch.Text = "Delete also local tracking branch"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeleteLocalTrackingBranch.Text = "Delete also local tracking branch"; | |
DeleteLocalTrackingBranch.Text = "Delete local tracking branch (if available)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
I would like to see the local tracked branch name when ticking the checkbox.
Partly to see if there is a local (you can see this in the sidepanel but not in the grid if the commit differs), partly to see if the name differs (often for me).
This would probably mean that the delete is only available for single selection.
I would probably want to delete the remote from the local instead.
Not run, but no comments on the code.
Done. Screenshot updated. |
Make sense but maybe later 😉 |
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display)
3d45620
to
6752297
Compare
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display)
6752297
to
98d4254
Compare
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display) # Conflicts: # GitUI/UserControls/BranchComboBox.Designer.cs # GitUI/UserControls/BranchComboBox.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display)
98d4254
to
976214d
Compare
@RussKie done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display)
976214d
to
7a5cece
Compare
…anch (gitextensions#11661) at the same time than a remote and display local tracking branches candidates to deletion Note: With the consequence that the logic that fix popup size has to be removed because no more compatible with a popup that could grow in size (due to a list of branches to display)
7a5cece
to
351d714
Compare
Thank you |
DeleteLocalTrackingBranch.Name = "DeleteLocalTrackingBranch"; | ||
DeleteLocalTrackingBranch.Size = new Size(284, 19); | ||
DeleteLocalTrackingBranch.TabIndex = 3; | ||
DeleteLocalTrackingBranch.Text = "Delete local tracking branch (if available)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It comes (too) late, but add a mnemonic yet, please, e.g.:
DeleteLocalTrackingBranch.Text = "Delete &local tracking branch (if available)";
* VS 2022 Preview keeps making these changes and they really seem to be unnecessary * Designer changes after saving FormGitIgnore * Fix FormGitIgnore form buttons DPI scaling * Add .idea to the default ignore pattern list (JetBrains Rider) * Update translation files to match Examples with default ignore patterns * Increase default FormGitIgnore form height * Enable vertical scrollbar for the examples section * Remove unused using * Add mnemonic as per #11661 (review) * Revert non-English translation changes
at the same time than a remote
Part of #11640 ( Following discussion)
Screenshots
Before
After
When remote deleted successfully, local branch delete form opened automatically with good branch(es) selected:

Test methodology
Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.