CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 Git's Discard All Changes Not Correct

Open thecoolwinter opened this issue 1 year ago • 1 comments

Description

The "Discard All Changes" functionality isn't quite correct. Right now it just runs git restore . which doesn't handle cases. We can make this feature even better by moving modified and added files to the trash similar to GH Desktop. See their implementation doc here for more details on how this should be handled.

To Reproduce

.

Expected Behavior

CodeEdit's discard changes successfully discards all changes, whether they're unstaged, staged, added, modified, or removed files.

Version Information

CodeEdit: 0.1.0

Additional Context

No response

Screenshots

No response

thecoolwinter avatar Jul 02 '24 17:07 thecoolwinter

There's more: after Discard already open files aren't changed.

dmythro avatar Dec 31 '24 00:12 dmythro