-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add --proceed flag to git-delete-squashed-branches #1134
Conversation
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.
The code change itself LGTM, but I'm wondering if this is the right approach
To me, it seems the behavior with --proceed
is what is expected when running the command. If there is 10 branches that should be deleted, I do not think it should stop on the first one, if the first one fails to delete, by default. Maybe the best approach is to just add || true
to the git branch -D "$branch"
because it is more intuitive? It would also match the behavior in git-delete-branch
.
@spacewander what do you think?
Oops, I didn't realize there was disussion about this in #1133. I've added the reference to PR description |
Yes, I would have preferred making this the default behavior. However, I was afraid that this breaks compatibility, so opted for a non-default option. Alternative could be to also support an env variable which changes the default behavior. |
@nkiesel I agree, backwards compatability is important. In my opinion, it is OK because the fix restores the command behavior to what is expected when this command runs, especially as these commands are typically run interactively and the behavior and flags remain the same as similar commands like I'm not going to block on this issue, the final verdict is up to @spacewander. We can always make a change later that will change the default behavior, which will both be backwards-compatible to, and obsolete, the |
Let's merge this one first 😄 |
Fixes #1133