Skip to content

ask user to resolve rebase conflicts before continuing #6548

Closed

Description

@shiftkey

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

Activity

  1. added this to the 1.7.0 milestone on Jan 8, 2019
  2. self-assigned this
    on Feb 19, 2019
  3. tierninho commented on Mar 1, 2019

    @tierninho
    Contributor

    @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?

    screen shot 2019-02-28 at 3 42 13 pm

  4. shiftkey commented on Mar 1, 2019

    @shiftkey
    MemberAuthor

    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?

  5. billygriffin commented on Mar 1, 2019

    @billygriffin
    Contributor

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

  6. shiftkey commented on Mar 1, 2019

    @shiftkey
    MemberAuthor

    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.

    I've opened #6989 to track this for 1.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions