CodeEditApp / CodeEditApp/CodeEdit

🐞 Git's Discard All Changes Not Correct

Đang mở
#1,786 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug source control
Ngôn ngữ chính
Swift
Star
23k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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](https://github.com/desktop/desktop/blob/df7f0aa0fcf48c7fa6a00da6878444d1f80d31b5/docs/technical/discard-changes.md?plain=1#L2) 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.