-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: discard changes from selected files only #3620
Comments
If I understood you correctly, resetting just the currently selected file in the commits view to |
Yes, that's correct (one or more files if multiple files are selected) |
Actually, it turns out that this feature already exists. Select multiple files, press |
We already have a pretty prominent tooltip telling you this, isn't that enough? Of course it's also easy to change the wording of the command like you suggest, I was just wondering. |
Yeah, the tooltip is probably sufficient -- it does list the affected files. The rewording could be useful, but certainly not essential. |
I just realized that the real issue is probably that we only show the "Discard unstaged changes" item when a file with both unstaged and staged changes is selected; otherwise we only show the "Discard all changes" entry, and in that case it's not clear that "all" is meant in contrast to "unstaged", and not "all files in the working copy". I opened #3683 to improve that, if you want to have a look at that. |
It would be nice to be able to discard changes from certain files only (the currently selected file(s) in the Commit panel, which are also displayed in the "Unstaged changes" panel)
when pressing d (discard), there could be an additional option to
Discard changes from selected files
The text was updated successfully, but these errors were encountered: