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
It is possible in 1.3.2 to Discard a single change (right-clicking on it), or "Discard All Changes...", but there is no way to discard only the changes that are selected (checkboxes).
The old version had this. It is almost a necessary feature. If you want to discard "all but one" from a long list, for example, you have to discard them one by one.
Hi @5Acres I'd say this is more of a usability issue if you want to call it an issue but what you've described is more than possible but you have to do it slighly differently.
Instead of using the checkboxes use ctr / command ( mac ) and click on the item's you'd like to discard. Once you have selected the ones you no longer want you can right click on any selected item and discard the changes. This will affect all highlighed items.
So, I understand your confusion but I'd also have to argue that Cmd+click is pretty native when being given a list of items like you are presented with within the client.
The confusing part is when you don't know that the checkboxes are for staging and unstanging changes and nothing to do with the actual act of selecting an item to perform an action.
Unfortuantly I havent put any time into this application myself but there are many put falls, I might suggest using gitKracken for a much nicer interface but unfortuantly I think you'll find yourself in the same situation with the selection issue. ( To be clear, I completely agree its not great. )
I think it's the best way of doing so far unless someone much better at UX comes along and figures something out. VS code kind of has the same issue, To perform an action on it you have to either use the things that show up at the side or use Ctr + Click to select multiple then rightclick. It's more of a flaw of having it all in the same list. I'm pretty sure google find themselves falling into this issue all the time, google drive in the browser comes to mind.
If you think you can offer a better solution then I urge you to submit PR / Issue with a proposal for a better system.
I'll confirm the two different flows here to ensure we're talking about the right thing:
the checkbox state indicates which items are to be included in the commit - I don't believe this affects the context menu items
selecting rows (using Shift to select a range of files, or Ctrl/Cmd to select single rows) is used to apply context menu actions to multiple items.
The old version had this.
Can you clarify which version you are referring to here? I pulled down the old macOS app to compare and it:
had no ability to select multiple rows in the list
"Discard Changes" only applied to the selected row, even when all entries were checked
If you want to discard "all but one" from a long list, for example, you have to discard them one by one.
#4509 added support to do "Select All" when the changes list has focus, and you can then unselect the row(s) you want to include before right-clicking to discard changes. That's the quickest way I can think of to achieve that today.
Happy to discuss this further if there's ways to improve this flow, but using the checkboxes to represent the commit state is still something I consider to be very important to Desktop.
From what I could understand and what I have found to be the case myself, it would appear that @5Acres is having and issue dealing with the two different ways of selecting files:
Check boxes for staging
And actual item selection.
It adds this layer of complexity to the application some users may find hard to deal with if they haven't been presented with this kind of UX before. I'd some to provide the magic solution but everything I can think of would add more complexity than is already present.
@5Acres Thanks for the detailed screenshots and description. I think going back to the previous implementation would also be confusing because it would be unclear to people whether "Discard Changes to Selected Files" meant the file you have highlighted (third file down) or the two files with the checkboxes checked. The difference between the active state and the checkboxes exists either way. I think this is something we'll explore further in our usability testing to find out if it's unintuitive for others as well, and thanks for pointing it out.
Got to say, I selected Discard All Changes by accident this morning and lost the morning's work. The dialog is no help at all; visually, if you're working quickly, it looks pretty much the same as the Discard Changes dialog. It was a bonehead thing to do. I'd move Discard All Changes somewhere else (I want to have it available, but not where it is).
(Thanks for moving the deleted files to the Trash; was able to save everything. But my heart nearly stopped for a moment.)
Thanks folks for weighing in on this. We discussed it internally, and based on the feedback we've seen from users, we're inclined to agree that the conflation of "Discard one" and "Discard all" is confusing and makes for a pretty dangerous situation, as @wduquette described above (thanks for explaining how it happened!).
This came about from this issue (#4197), and we didn't fully appreciate how it might fall down as a result while improving discoverability. Our biggest question now is whether just removing "Discard all changes" from the context menu will just reintroduce the discoverability problem for people who want to discard everything, or if multi-select for files will solve the problem (along with the relatively undiscoverable existing context menu item for "Discard all changes" from the header area).
@desktop/design When you have a chance, would you mind weighing in on this given that there is a previous issue around discoverability?
"the relatively undiscoverable existing context menu item for "Discard all changes" from the header area": I certainly didn't know that that was there, and it wouldn't have occurred to me to look for such a thing there. Now that I know it's there, I like it; that's the right place for it, much better than on the context menu for a single file.
Maybe add a "cog" icon to the header, as an indicator that there's a menu? Or a downward pointing triangle icon? You don't need that on the files, because they are items in a list; context menus are expected. But the header isn't an item in the list, and needs a little extra help.
I think we should make it a little harder to throw out all of todays work.
It's true, the context menu on the header is hard to discover (#4197), because you have to know to right-click the header to see it, and it only holds one item. So remove that context menu on the header.
All of that, #4197 discussion occurred before #5187 landed, and @shiftkey got rid of the problem that was supposed to be solved by 'discard all'
For everyday users looking for an easy way to get rid of all changes, @shiftkey in #5187 lets a user mass-select their changes (command-A), and call up the context menu: It suggests Discard {number} selected changes
I propose, at the bare minimum:
Remove Discard All Changes from the context menu
Remove Context menu from header (the undiscoverable one)
And if we still want a user to be able to have a one stop shop for throwing out all their work.
Back in #4197, @mdiep suggested a menu item. It's still a good idea
Add an item to the top menu: Branch > Reset And Discard All Changes
I'm going to go ahead and add help wanted here since it's clear what the initial three steps are, but please let us know if you have questions. Agreed that we hold off on (4) unless it becomes more clearly needed, and I think with the first three we can close this issue.
Please let us know if you're interested in picking this one up!
This issue has sat for a while without being acted upon, and I believe it's down to the discoverability of the task list. I've extracted this out to #7394, and to prevent further confusion now we know what changes we want to make I'm going to close this out.
Hi folks! @ampinsk's proposed changes 1-3 have now been merged and shipped to beta in #7415 (thanks @ahuth!), and should go out to production in one of the next two releases. Really appreciate the feedback here, and we'll continue to look at ways to improve it.
Activity
MichaelHillcox commentedon Aug 4, 2018
Hi @5Acres I'd say this is more of a usability issue if you want to call it an issue but what you've described is more than possible but you have to do it slighly differently.
Instead of using the checkboxes use ctr / command ( mac ) and click on the item's you'd like to discard. Once you have selected the ones you no longer want you can right click on any selected item and discard the changes. This will affect all highlighed items.
Hopefully it should look like this

MichaelHillcox commentedon Aug 4, 2018
So, I understand your confusion but I'd also have to argue that Cmd+click is pretty native when being given a list of items like you are presented with within the client.
The confusing part is when you don't know that the checkboxes are for staging and unstanging changes and nothing to do with the actual act of selecting an item to perform an action.
MichaelHillcox commentedon Aug 5, 2018
Unfortuantly I havent put any time into this application myself but there are many put falls, I might suggest using gitKracken for a much nicer interface but unfortuantly I think you'll find yourself in the same situation with the selection issue. ( To be clear, I completely agree its not great. )
I think it's the best way of doing so far unless someone much better at UX comes along and figures something out. VS code kind of has the same issue, To perform an action on it you have to either use the things that show up at the side or use Ctr + Click to select multiple then rightclick. It's more of a flaw of having it all in the same list. I'm pretty sure google find themselves falling into this issue all the time, google drive in the browser comes to mind.
If you think you can offer a better solution then I urge you to submit PR / Issue with a proposal for a better system.
Either way, Hope this is the only issue you find.
shiftkey commentedon Aug 7, 2018
@5Acres @MichaelHillcox thanks for the feedback on this area of the app.
I'll confirm the two different flows here to ensure we're talking about the right thing:
Can you clarify which version you are referring to here? I pulled down the old macOS app to compare and it:
#4509 added support to do "Select All" when the changes list has focus, and you can then unselect the row(s) you want to include before right-clicking to discard changes. That's the quickest way I can think of to achieve that today.
Happy to discuss this further if there's ways to improve this flow, but using the checkboxes to represent the commit state is still something I consider to be very important to Desktop.
MichaelHillcox commentedon Aug 7, 2018
Hi @shiftkey
From what I could understand and what I have found to be the case myself, it would appear that @5Acres is having and issue dealing with the two different ways of selecting files:
It adds this layer of complexity to the application some users may find hard to deal with if they haven't been presented with this kind of UX before. I'd some to provide the magic solution but everything I can think of would add more complexity than is already present.
[-]No way to Discard Selected Changes...[/-][+]UX around Discard Changes is unclear[/+]billygriffin commentedon Aug 13, 2018
@5Acres Thanks for the detailed screenshots and description. I think going back to the previous implementation would also be confusing because it would be unclear to people whether "Discard Changes to Selected Files" meant the file you have highlighted (third file down) or the two files with the checkboxes checked. The difference between the active state and the checkboxes exists either way. I think this is something we'll explore further in our usability testing to find out if it's unintuitive for others as well, and thanks for pointing it out.
steveward commentedon Nov 1, 2018
Feedback from @graemeworthy in #5690:
wduquette commentedon Jan 22, 2019
Got to say, I selected Discard All Changes by accident this morning and lost the morning's work. The dialog is no help at all; visually, if you're working quickly, it looks pretty much the same as the Discard Changes dialog. It was a bonehead thing to do. I'd move Discard All Changes somewhere else (I want to have it available, but not where it is).
(Thanks for moving the deleted files to the Trash; was able to save everything. But my heart nearly stopped for a moment.)
billygriffin commentedon Jan 23, 2019
Thanks folks for weighing in on this. We discussed it internally, and based on the feedback we've seen from users, we're inclined to agree that the conflation of "Discard one" and "Discard all" is confusing and makes for a pretty dangerous situation, as @wduquette described above (thanks for explaining how it happened!).
This came about from this issue (#4197), and we didn't fully appreciate how it might fall down as a result while improving discoverability. Our biggest question now is whether just removing "Discard all changes" from the context menu will just reintroduce the discoverability problem for people who want to discard everything, or if multi-select for files will solve the problem (along with the relatively undiscoverable existing context menu item for "Discard all changes" from the header area).
@desktop/design When you have a chance, would you mind weighing in on this given that there is a previous issue around discoverability?
wduquette commentedon Jan 23, 2019
"the relatively undiscoverable existing context menu item for "Discard all changes" from the header area": I certainly didn't know that that was there, and it wouldn't have occurred to me to look for such a thing there. Now that I know it's there, I like it; that's the right place for it, much better than on the context menu for a single file.
Maybe add a "cog" icon to the header, as an indicator that there's a menu? Or a downward pointing triangle icon? You don't need that on the files, because they are items in a list; context menus are expected. But the header isn't an item in the list, and needs a little extra help.
graemeworthy commentedon Jan 24, 2019
I think we should make it a little harder to throw out all of todays work.
It's true, the context menu on the header is hard to discover (#4197), because you have to know to right-click the header to see it, and it only holds one item. So remove that context menu on the header.
All of that, #4197 discussion occurred before #5187 landed, and @shiftkey got rid of the problem that was supposed to be solved by 'discard all'
For everyday users looking for an easy way to get rid of all changes, @shiftkey in #5187 lets a user mass-select their changes (command-A), and call up the context menu: It suggests
Discard {number} selected changesI propose, at the bare minimum:
Discard All Changesfrom the context menuAnd if we still want a user to be able to have a one stop shop for throwing out all their work.
Back in #4197, @mdiep suggested a menu item. It's still a good idea
Branch>Reset And Discard All Changesampinsk commentedon Jan 25, 2019
I think we can solve this through implementing these four things, I believe in this order:
Discard All Changesfrom file context menuDiscard All Changesas a top menu itemDiscard All Changesfrom the header context menuDiscard All Changesand potential future actions)For anyone who picks this up:
For 2, I think
Discard All Changesshould live inBranch>Discard All Changesin a new section between the first and the second section.For 4, I think we can wait and see how 1-3 feels first before implementing.
billygriffin commentedon Jan 25, 2019
Thanks @ampinsk!
I'm going to go ahead and add
help wantedhere since it's clear what the initial three steps are, but please let us know if you have questions. Agreed that we hold off on (4) unless it becomes more clearly needed, and I think with the first three we can close this issue.Please let us know if you're interested in picking this one up!
shiftkey commentedon Apr 18, 2019
@bamwu opened #7356 to propose removing this menu item, which is what we settled based on the recent comments in this discussion.
shiftkey commentedon Apr 25, 2019
This issue has sat for a while without being acted upon, and I believe it's down to the discoverability of the task list. I've extracted this out to #7394, and to prevent further confusion now we know what changes we want to make I'm going to close this out.
billygriffin commentedon May 6, 2019
Hi folks! @ampinsk's proposed changes 1-3 have now been merged and shipped to beta in #7415 (thanks @ahuth!), and should go out to production in one of the next two releases. Really appreciate the feedback here, and we'll continue to look at ways to improve it.