# git_panel: Add group by staging view option \(\#59884\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 65e1c5af258d4c80036467d583691f3f9ded0897

Requested commit: 65e1c5af258d4c80036467d583691f3f9ded0897

Commit: 65e1c5af258d4c80036467d583691f3f9ded0897

Tree: f17c62fda63db24c2b62b9a3a796865f6fb01d00

Author: Sathwik Chirivelli

Committer: GitHub

## Message

```
git_panel: Add group by staging view option (#59884)

# Objective

- Add a view option for group by staging.

## Solution

- Add a new option for group_by under git_panel view options, with 2
sections "Staged" and "Unstaged", with buttons (+/-) to stage and
unstage

## Testing

- cargo check -p git_ui

## 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

<img width="1679" height="1140" alt="Screenshot 2026-06-25 at 2 09
44 PM"
src="https://github.com/user-attachments/assets/1b605cad-7792-4823-983c-ada41be25504"
/>


---

Release Notes:

- Added group by staging view option

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

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

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