Skip to content

Conversation

pmiossec
Copy link
Member

@pmiossec pmiossec commented Mar 28, 2024

at the same time than a remote

Part of #11640 ( Following discussion)

Screenshots

Before

After

image

When remote deleted successfully, local branch delete form opened automatically with good branch(es) selected:
delete_local_with_remote

Test methodology

  • Manual

Test environment(s)

  • Git Extensions 33.33.33
  • Build fe059f5db67923fbb93efe2115223b97129e161d (Dirty)
  • Git 2.44.0.windows.1
  • Microsoft Windows NT 10.0.22631.0
  • .NET 8.0.1
  • DPI 96dpi (no scaling)
  • Portable: False
  • Microsoft.WindowsDesktop.App Versions
    Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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.

@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from dcfaf72 to 799690f Compare March 29, 2024 09:43
Copy link
Member

@RussKie RussKie left a 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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DeleteLocalTrackingBranch.Text = "Delete also local tracking branch";
DeleteLocalTrackingBranch.Text = "Delete local tracking branch (if available)";

Copy link
Member

@gerhardol gerhardol left a 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.

@pmiossec
Copy link
Member Author

pmiossec commented Apr 3, 2024

+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.

Done. Screenshot updated.

@pmiossec
Copy link
Member Author

pmiossec commented Apr 3, 2024

I would probably want to delete the remote from the local instead.

Make sense but maybe later 😉

pmiossec added a commit to pmiossec/gitextensions that referenced this pull request Apr 4, 2024
…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)
@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from 3d45620 to 6752297 Compare April 4, 2024 21:44
pmiossec added a commit to pmiossec/gitextensions that referenced this pull request Apr 6, 2024
…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)
@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from 6752297 to 98d4254 Compare April 6, 2024 13:49
pmiossec added a commit to pmiossec/gitextensions that referenced this pull request Apr 6, 2024
…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
Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

pmiossec added a commit to pmiossec/gitextensions that referenced this pull request Apr 8, 2024
…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)
@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from 98d4254 to 976214d Compare April 8, 2024 16:10
@pmiossec
Copy link
Member Author

pmiossec commented Apr 8, 2024

@RussKie done.

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

pmiossec added a commit to pmiossec/gitextensions that referenced this pull request Apr 10, 2024
…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)
@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from 976214d to 7a5cece Compare April 10, 2024 07:48
…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)
@pmiossec pmiossec force-pushed the delete_local_branch_when_delete_remote branch from 7a5cece to 351d714 Compare April 11, 2024 07:26
@RussKie RussKie merged commit c06f177 into gitextensions:master Apr 19, 2024
@RussKie
Copy link
Member

RussKie commented Apr 19, 2024

Thank you

@RussKie RussKie added this to the vNext milestone Apr 19, 2024
DeleteLocalTrackingBranch.Name = "DeleteLocalTrackingBranch";
DeleteLocalTrackingBranch.Size = new Size(284, 19);
DeleteLocalTrackingBranch.TabIndex = 3;
DeleteLocalTrackingBranch.Text = "Delete local tracking branch (if available)";
Copy link
Member

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)";

mdonatas added a commit to mdonatas/gitextensions that referenced this pull request Apr 20, 2024
RussKie pushed a commit that referenced this pull request Apr 22, 2024
* 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
@pmiossec pmiossec deleted the delete_local_branch_when_delete_remote branch April 22, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants