# Show tag names in git blame tooltips \(\#60757\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 97110fd5a119eb5fad49524dc04d7c042193e8ab

Requested commit: 97110fd5a119eb5fad49524dc04d7c042193e8ab

Commit: 97110fd5a119eb5fad49524dc04d7c042193e8ab

Tree: bda428a0a2be91f8551723115a2d77f52fb05ba2

Author: Ruslan Semagin

Committer: GitHub

## Message

```
Show tag names in git blame tooltips (#60757)

Fetch tag names for commits included in blame data and pass them through
the blame rendering path. Render tag names as chips in the blame hover
tooltip and expanded blame popover. Tag lookup is best-effort, so blame
still renders if tag lookup fails.

> Note: Tag names are currently only fetched for local repositories. For
remote projects (SSH) and collab sessions, blame data travels over the
`BlameBufferResponse` proto message, which doesn't carry tag names yet.

  ## Testing

- `cargo test -p git
test_parse_tag_names_for_lightweight_and_annotated_tags`
  - `cargo check -p git_ui`
  - `cargo check -p editor`
  - `cargo check -p project`

  Manual testing:
  - Opened `git: blame` on a file with a tagged commit.
- Verified tag chips are shown in the blame hover tooltip and expanded
popover.

  ## Self-Review Checklist:

  - [x] I've reviewed my own diff for quality, security, and reliability
  - [x] 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)
  - [x] Tests cover the new/changed behavior
  - [x] Performance impact has been considered and is acceptable

  ## Showcase

Before:
<img width="1655" height="660" alt="before"
src="https://github.com/user-attachments/assets/dbefd729-f8df-48a9-8249-83c93518fe76"
/>

After:
<img width="1655" height="660" alt="after"
src="https://github.com/user-attachments/assets/2c1097de-b268-45d9-9d13-0f3e06058603"
/>

---

Release Notes:

- Git: Made tags visible in Git blame tooltips.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

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

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