git_panel: Add commit history view#56500
Merged
Merged
Conversation
Anthony-Eid
approved these changes
May 12, 2026
Anthony-Eid
left a comment
Contributor
There was a problem hiding this comment.
I wonder if we can unify this code and the git graph
Member
Author
|
Yeah, great call, will give that a pass in a follow up! Landing this one for now 😄 appreciate the review! |
Anthony-Eid
reviewed
May 12, 2026
Comment on lines
+5093
to
+5108
| if self._repo_subscriptions.is_empty() { | ||
| self._repo_subscriptions.push(cx.subscribe( | ||
| active_repository, | ||
| |this, _repo, event, cx| { | ||
| if let RepositoryEvent::GraphEvent(_, _) = event { | ||
| if this.active_tab == GitPanelTab::History { | ||
| this.fetch_commit_history_shas(cx); | ||
| } | ||
| } | ||
| }, | ||
| )); | ||
| self._repo_subscriptions | ||
| .push(cx.observe(active_repository, |_this, _repo, cx| { | ||
| cx.notify(); | ||
| })); | ||
| } |
Contributor
There was a problem hiding this comment.
I think this is wrong, we should clear the data depending on the type of graph event.
Also, should we have a way to switch the repo when the active repository changes
Contributor
DanielFabian
pushed a commit
to DanielFabian/zed
that referenced
this pull request
May 14, 2026
…ard (zed-industries#56743) Follow-up to zed-industries#56500. Was missing this ability very much :) Release Notes: - Git Panel: Added the ability to switch between the changes and history tabs with the keyboard.
|
just wanted to swing by and say THANK YOU for this!!! |
jasonsmithio
pushed a commit
to paddleboarddev/paddleboard
that referenced
this pull request
May 31, 2026
…ard (#56743) Follow-up to zed-industries/zed#56500. Was missing this ability very much :) Release Notes: - Git Panel: Added the ability to switch between the changes and history tabs with the keyboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a history view to the git panel. It draws from similar implementations of commit listing in other places like the file history view and the git graph.
Release Notes: