Skip to content

restrict checkbox state when dealing with rebase conflicts #7006

Closed

Description

@shiftkey

This was raised by @tierninho in #6984 (comment):

if you navigate to the Changes tab and uncheck the changes, the Continue rebase button is still active. I expect to be be disabled until the user checks the changed file(s).

While the "Continue rebase" state is valid feedback here, the underlying issue is that users can uncheck files that need to be handled as part of resolving conflicts. This doesn't actually affect the rebase (or merge) action, which is applied to all tracked files and ignores the checkbox status.

What I'd like to do to tighten up this behaviour is to lock down the checkbox behaviour:

  • for each tracked file, mark the file as checked, disable the checkbox and add a helpful tooltip
  • for each untracked file, mark the file as unchecked by default, leave the checkbox enabled (so the user can add the file to the rebase if they want?) and add a helpful tooltip

Activity

  1. added this to the 1.7.0 milestone on Mar 4, 2019
  2. tierninho commented on Mar 5, 2019

    @tierninho
    Contributor

    Additionally, if all items are left unchecked, the rebase button should be disabled (if we goes this route).

    Clicking the button results in an error message:

    image

    tested 76d48b9, mac

    Update: this error appears to be from the file and not the button logic, however my point is valid.

  3. shiftkey commented on Mar 5, 2019

    @shiftkey
    MemberAuthor

    Additionally, if all items are left unchecked, the rebase button should be disabled (if we goes this route).

    There's a rebase state where the changes in a commit from the target branch already exist in the base branch, and so Desktop will need to drop the current commit from the rebase operation (with a git rebase --skip). I fear this means there'll be a situation where there are no files in the changes list shown to the user, but we'll need to enable the button to continue on nonetheless.

    This will be a test case I'll keep an eye out for while working through this.

  4. self-assigned this
    on Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions