Skip to content

Display 'discard unstaged changes' above 'discard all changes' #1405

@strboul

Description

@strboul

In the discard changes options popup (invoked by pressing d in the Files pane), when there's a file with MM status, there are currently three options are seen:

discard all changes
discard unstaged changes
cancel

I think it's better to show the 'discard unstaged changes' option first in this list. UX-wise, it's a good practice to go from specific to general, as the impact of discarding some changes is smaller than discarding all changes. For example, when I stage some lines and want to discard the rest, I sometimes too quickly select the first option and end up discarding all changes instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions