# git_ui: Add total diff stats to git panel \(\#58018\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9d50bab893bffbafa2a3a91fb90754408db433c9

Requested commit: 9d50bab893bffbafa2a3a91fb90754408db433c9

Commit: 9d50bab893bffbafa2a3a91fb90754408db433c9

Tree: 4ed1d4bd8648e795e9533d82e2a3d6890c811fce

Author: Warya Wayne

Committer: GitHub

## Message

```
git_ui: Add total diff stats to git panel (#58018)

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 is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Hello Zed Team, this is my first contribution. I use Zed every day and
have always wanted to see the total for the plus/minus counts in the Git
diff panel. Here is my attempt to make that happen. Please let me know
if there are any issues and I will fix them. Thank you.

Adds git diff stats to the Git panel so users can see the total number
of added and removed lines while reviewing changes.

Verified locally by compiling and running Zed, then confirming the Git
panel displays the diff count as expected.

Release Notes:

- Improved Git panel diff visibility by showing total added and removed
line counts.

<img width="1540" height="1098" alt="zed-add-git-diff-plus-minus-count"
src="https://github.com/user-attachments/assets/5051944e-7cf5-4bb0-81d3-10228e619690"
/>
```

## Parents

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

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