CodeEditApp / CodeEditApp/CodeEdit

🐞 Git's Discard All Changes Not Correct

オープン
#1,786 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug source control
主要言語
Swift
スター
23k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。