Skip to content

git: Unify commit popups#35328

Closed
LoricAndre wants to merge 11 commits intozed-industries:mainfrom
LoricAndre:feat/git-unify-commit-popups
Closed

git: Unify commit popups#35328
LoricAndre wants to merge 11 commits intozed-industries:mainfrom
LoricAndre:feat/git-unify-commit-popups

Conversation

@LoricAndre
Copy link
Contributor

Closes #26424

Release Notes:

  • feat(git): unified the git commit popups between the git panel and the git blame

@cla-bot
Copy link

cla-bot bot commented Jul 30, 2025

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: LoricAndre.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot
Copy link

cla-bot bot commented Jul 30, 2025

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: LoricAndre.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@maxdeviant maxdeviant changed the title Feat/git unify commit popups git: Unify commit popups Jul 30, 2025
@cla-bot
Copy link

cla-bot bot commented Jul 30, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @LoricAndre 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'.

@LoricAndre
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 Jul 30, 2025
@LoricAndre
Copy link
Contributor Author

Sorry about the last push, some unwanted changes slipped in. I'll revert what I need and push in a few minutes

@LoricAndre LoricAndre force-pushed the feat/git-unify-commit-popups branch from 1665ce6 to d25dcc3 Compare August 9, 2025 14:49
@LoricAndre
Copy link
Contributor Author

It should be good now !

@LoricAndre
Copy link
Contributor Author

LoricAndre commented Aug 9, 2025

Nevermind, apparently one of the clippy fixes didn't make it through the merge, I pushed a new version.
Sorry about this, I ran cargo clippy and format right before pushing this time

@ConradIrwin
Copy link
Member

Thanks for this, it would be great to fix this.

Currently it looks like there are a few conflicts, and the diff seems much larger than I expected. Can you summarize what you had to change?

(Also I think the previous behavior of upstream first, then origin was the correct behavior)

Closing for now, but would be interested in reviewing a fresh copy of this change.

@ConradIrwin ConradIrwin closed this Sep 9, 2025
@LoricAndre
Copy link
Contributor Author

The diff is large because there were 2 similar very similar structs involved here in the repository and blame modules. The difference in display was partly caused by the use of one or the other depending on the context. Instead of reimplementing what was needed in the git::repository module, I unified these in the git::commit module and used it in git::blame as well as the git UI.

The old behavior will be restored when I reopen this, and the conflicts are there because after removing them twice without any response from your side (which I can very much understand), I didn't take the time to keep resolving them after around a week of waiting.

@LoricAndre
Copy link
Contributor Author

@ConradIrwin I'd be happy to discuss this before I reopen anything, could you take a look at my comment above when you have some time ?

@ConradIrwin
Copy link
Member

@LoricAndre thanks, and sorry for missing this.

that makes sense to me, and I can review a new PR next week (in the middle of a giant refactoring for the next few days)

@LoricAndre
Copy link
Contributor Author

Perfect, I'll reopen a PR early next week with these changes and keeping the upsteam > origin logic

cole-miller added a commit that referenced this pull request Dec 17, 2025
Closes #26424
Supersedes #35328

Originally, `git::blame` uses its own `ParsedCommitMessage` as the
source for the commit information, including the PR section. This
changes unifies this with `git::repository` and `git_ui::git_panel` by
moving this and some other commit-related structs to `git::commit`
instead, and making both `git_ui::blame_ui` and `git_ui::git_panel` pull
their information from these structs.

Release notes :

- (Let's Git Together) Fixed the commit tooltip in the git panel not
showing information like avatars.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Closes #26424
Supersedes #35328

Originally, `git::blame` uses its own `ParsedCommitMessage` as the
source for the commit information, including the PR section. This
changes unifies this with `git::repository` and `git_ui::git_panel` by
moving this and some other commit-related structs to `git::commit`
instead, and making both `git_ui::blame_ui` and `git_ui::git_panel` pull
their information from these structs.

Release notes :

- (Let's Git Together) Fixed the commit tooltip in the git panel not
showing information like avatars.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#26424
Supersedes zed-industries#35328

Originally, `git::blame` uses its own `ParsedCommitMessage` as the
source for the commit information, including the PR section. This
changes unifies this with `git::repository` and `git_ui::git_panel` by
moving this and some other commit-related structs to `git::commit`
instead, and making both `git_ui::blame_ui` and `git_ui::git_panel` pull
their information from these structs.

Release notes :

- (Let's Git Together) Fixed the commit tooltip in the git panel not
showing information like avatars.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#26424
Supersedes zed-industries#35328

Originally, `git::blame` uses its own `ParsedCommitMessage` as the
source for the commit information, including the PR section. This
changes unifies this with `git::repository` and `git_ui::git_panel` by
moving this and some other commit-related structs to `git::commit`
instead, and making both `git_ui::blame_ui` and `git_ui::git_panel` pull
their information from these structs.

Release notes :

- (Let's Git Together) Fixed the commit tooltip in the git panel not
showing information like avatars.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
Closes zed-industries#26424
Supersedes zed-industries#35328

Originally, `git::blame` uses its own `ParsedCommitMessage` as the
source for the commit information, including the PR section. This
changes unifies this with `git::repository` and `git_ui::git_panel` by
moving this and some other commit-related structs to `git::commit`
instead, and making both `git_ui::blame_ui` and `git_ui::git_panel` pull
their information from these structs.

Release notes :

- (Let's Git Together) Fixed the commit tooltip in the git panel not
showing information like avatars.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

commit popover in git panel is inconsistent with the one for git blame

3 participants