-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Delete unused branch plugin: Makes GetBranchNames() support worktrees #11376
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
Delete unused branch plugin: Makes GetBranchNames() support worktrees #11376
Conversation
7c0f6cb
to
55c2a2a
Compare
@jonnydee You could test the fix in the portable version built and please confirm that it solves the issue: https://ci.appveyor.com/project/gitextensions/gitextensions/builds/48578287/artifacts |
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.
looks sensible, have only run the changed "git log" command
UnitTests/Plugins/DeleteUnusedBranches.Tests/GitBranchOutputCommandParserTests.cs
Outdated
Show resolved
Hide resolved
UnitTests/Plugins/DeleteUnusedBranches.Tests/GitBranchOutputCommandParserTests.cs
Outdated
Show resolved
Hide resolved
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.
👍 modulo the outstanding feedback
Should we patch 4.2? |
@pmiossec I can confirm that the fix solves the issue. That was pretty fast, thank you very much! |
Yes, please! |
by parsing correctly the output of the command `git branch --list --merged HEAD` that contains "+ " prefix in front of branch names checked out in git worktrees + add support of some other edge cases Fixes gitextensions#11375 + makes git log command a little more resilient by appending '--' like done in gitextensions#11277
55c2a2a
to
88e76fc
Compare
Fixed everything (I think). Rebased on and targeted |
Thank you |
by parsing correctly the output of the command
git branch --list --merged HEAD
that contains "+ " prefix in front of branch names checked out in git worktrees
Fixes #11375
Screenshots
Before
After
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.