# git_panel: Use specific label and prompt for reverting deleted file \(\#61554\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c29ba6c212e233aa81455a10d2a898bfc5985393)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c29ba6c212e233aa81455a10d2a898bfc5985393

Requested commit: c29ba6c212e233aa81455a10d2a898bfc5985393

Commit: c29ba6c212e233aa81455a10d2a898bfc5985393

Tree: d0776267c02d9b2fc3698454f7bba49ab3c227cc

Author: Levin Rickert

Committer: GitHub

## Message

```
git_panel: Use specific label and prompt for reverting deleted file (#61554)

# Objective

I expected a different label for reverting a file deletion like Zed
already has for reverting a file creation.

## Solution

This PR implements a new label and prompt. VS Code also shows a
different prompt while keeping the label static but I think it makes
more sense to let both adapt.

## Testing

Just deleted a file and checked menu label and prompt.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

## Showcase

<img width="363" height="139" alt="image"
src="https://github.com/user-attachments/assets/6be7e5b9-7250-449e-9cba-ea5a2099dd3a"
/>

<img width="349" height="240" alt="image"
src="https://github.com/user-attachments/assets/d87d5b4b-ff29-4976-8078-314c94a71896"
/>

---

Release Notes:

- Git Panel: Added specific label and prompt to context menu for
reverting a deleted file
```

## Parents

- [09c5c2747443f646e2f33963295fd4b1ac797eaa](https://git.cafe/gitcafe/zed/commit/09c5c2747443f646e2f33963295fd4b1ac797eaa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c29ba6c212e233aa81455a10d2a898bfc5985393?format=markdown)
