You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ask user to resolve rebase conflicts before continuing #6548
Much like the work around handling merge conflicts, this issue is about ensuring the app correctly detects the user is in a rebase (and that conflicts were found) and asks the user to resolve these before continuing.
The mocks for this can be seen in this comment: #5953 (comment)
TODO:
when an error occurs that indicates a rebase is occurring, show the dialog
when git status detects that a rebase is in progress, verify the dialog is shown
show the list of files and indicate what needs to be addressed (ala merge conflicts)
let the user abort the rebase
when there are no more things to resolve, let the user continue the rebase
@shiftkey I noticed when you abort a fixed conflicted file in a merge commit, there is no "are you sure" check like we have in the existing merge flow. Is this needed for rebasing?
We didn't talk about this in the scope of 1.6.3, but there's a rebase workflow where you might want to confirm this that we could consider:
you plan to rebase a very old branch
you see that there's likely to be lots of commits and lots of conflicts to work through, but you decide to march on
at some point after dealing with multiple resolved conflicts you mistakenly press Abort rebase
you're put back to the state before the rebase, and you'll likely have to redo the rebase again if you want to put that branch on top of the latest changes
@billygriffin does this case motivate you to have an equivalent "Confirm abort rebase" dialog on our roadmap?
@shiftkey I think I'd generally be inclined to have a confirm on abort only if they've already resolved some subset of conflicts already (which is @tierninho's use case). In that case, by aborting you're effectively losing work, so my preference would be that this should exist.
In that case, by aborting you're effectively losing work, so my preference would be that this should exist.
Keep in mind that you could encounter conflicts multiple times as part of a rebase flow, so the "lost work" can be more than just the scope of a single "resolve commits" step.
Activity
tierninho commentedon Mar 1, 2019
@shiftkey I noticed when you abort a fixed conflicted file in a merge commit, there is no "are you sure" check like we have in the existing merge flow. Is this needed for rebasing?
shiftkey commentedon Mar 1, 2019
We didn't talk about this in the scope of 1.6.3, but there's a rebase workflow where you might want to confirm this that we could consider:
Abort rebase@billygriffin does this case motivate you to have an equivalent "Confirm abort rebase" dialog on our roadmap?
billygriffin commentedon Mar 1, 2019
@shiftkey I think I'd generally be inclined to have a confirm on abort only if they've already resolved some subset of conflicts already (which is @tierninho's use case). In that case, by aborting you're effectively losing work, so my preference would be that this should exist.
shiftkey commentedon Mar 1, 2019
Keep in mind that you could encounter conflicts multiple times as part of a rebase flow, so the "lost work" can be more than just the scope of a single "resolve commits" step.
I've opened #6989 to track this for
1.7.0.