Skip to content

Conversation

@korbindeman
Copy link
Contributor

This PR adds a "Git Restore" action to the project panel's right-click context menu for restoring files to their last committed state.

context_menu

I frequently found myself wanting this feature and decided to implement it. I understand that there's no existing issue for this (that I know of). I'm happy to discuss whether this is a welcome addition and if the menu placement makes sense.

Release Notes:

  • Added: "Restore" action in project panel context menu to discard uncommitted file changes.
@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @korbindeman on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-industries-bot
Copy link

zed-industries-bot commented Nov 11, 2025

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against 4ed375e

@korbindeman
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 11, 2025
@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

The cla-bot has been summoned, and re-checked this pull request!

@esthertrapadoux
Copy link

Hey @korbindeman just following up to let you know the team went pretty deep in more git feature work and we got behind on PR reviews. We're ramping back up and appreciate the patience! 👍 I know you've been waiting for a while now.

@korbindeman
Copy link
Contributor Author

No worries, thanks for the update! Appreciate you letting me know.

I’m curious if you’re interested in merging this. I’ve found it useful and have added an “add to .gitignore” feature as well. Happy to update the PR with the addition if you’d like.

@katie-z-geer
Copy link
Contributor

@korbindeman can you remind me which GH issue this pertains to?

@korbindeman
Copy link
Contributor Author

Hey @katie-z-geer, as mentioned in the original PR comment, there is no existing issue related to this PR. It's a quality-of-life feature that I thought might be useful, especially considering the current focus on improving git UX.

If you'd like me to open an issue for this, I'm happy to do that!

@katie-z-geer
Copy link
Contributor

Oh duh you're so right. I'll make sure this is on our PR boards this week (it's quality week) for review. Thank you!

Copy link
Contributor

@cameron1024 cameron1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR 🙏

I've tested it and it works, and the code looks good. A couple of small things but it's looking good :)

@korbindeman
Copy link
Contributor Author

@cameron1024 thanks for the review! I agree with your suggestions and have implemented them in the latest commit (2441287).

Copy link
Contributor

@cameron1024 cameron1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks 🙏

@cameron1024 cameron1024 merged commit f2495a6 into zed-industries:main Dec 19, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Community PRs to Done in Quality Week – December 2025 Dec 19, 2025
@korbindeman korbindeman deleted the feat_git_restore_in_project_panel branch December 19, 2025 14:03
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Co-authored-by: cameron <cameron.studdstreet@gmail.com>
@esthertrapadoux esthertrapadoux moved this from Let's Git Together to 🚢 Shipped by Community in Git board Jan 15, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

7 participants