-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: discard changes support for SourceControlToolbarBottom
#1480
feat: discard changes support for SourceControlToolbarBottom
#1480
Conversation
SourceControlToolbarBottom
discard changes dialogSourceControlToolbarBottom
CodeEdit/Features/NavigatorArea/SourceControlNavigator/SourceControlToolbarBottom.swift
Outdated
Show resolved
Hide resolved
Reatore is not the right call you should be making. You should be using 'reset -- .' |
Hi @nanashili, thanks for the bringing this up! I used
Given that we are prompting for |
Another consideration is that As a matter of fact, Visual Studio Code also uses this approach, if you want to apply I would also make the operation of |
Just saw sfitlint issues! Will fix and push soon! |
CodeEdit/Features/NavigatorArea/SourceControlNavigator/SourceControlToolbarBottom.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CodeEdit/Features/NavigatorArea/SourceControlNavigator/SourceControlToolbarBottom.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for getting this done!
Description
Provides support to discard all unstagged changes in the repository by spawning tho
git restore .
command.Related Issues
Based on todo.
Checklist
Screenshots
CleanShot.2023-11-12.at.21.01.02.mp4