Fix track file renames in git panel (#42352)

Closes #30549

Release Notes:

- Fixed: Git renames now properly show as renamed files in the git panel
instead of appearing as deleted + untracked files
<img width="351" height="132" alt="Screenshot 2025-11-10 at 17 39 44"
src="https://github.com/user-attachments/assets/80e9c286-1abd-4498-a7d5-bd21633e6597"
/>
<img width="500" height="95" alt="Screenshot 2025-11-10 at 17 39 55"
src="https://github.com/user-attachments/assets/e4c59796-df3a-4d12-96f4-e6706b13a32f"
/>
This commit is contained in:
ozzy
2025-11-17 13:25:51 -06:00
committed by GitHub
parent 57e3bcfcf8
commit b0a7defd09
9 changed files with 151 additions and 45 deletions
+5
View File
@@ -708,6 +708,11 @@ impl RenderOnce for GitStatusIcon {
IconName::SquareMinus,
cx.theme().colors().version_control_deleted,
)
} else if status.is_renamed() {
(
IconName::ArrowRight,
cx.theme().colors().version_control_modified,
)
} else if status.is_modified() {
(
IconName::SquareDot,