# git_graph: Add tree view for commit changed files \(\#58198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca0fd8d4e16e0e2687058552a9545625f00e0fb3

Requested commit: ca0fd8d4e16e0e2687058552a9545625f00e0fb3

Commit: ca0fd8d4e16e0e2687058552a9545625f00e0fb3

Tree: e084f1f277c4a9d64f02b93ad296f28716555c99

Author: Sathwik Chirivelli

Committer: GitHub

## Message

```
git_graph: Add tree view for commit changed files (#58198)

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

Summary:

- Added a toggleable tree view for changed files in the git graph commit
details panel
- Reused shared ListItem rows and file icon folder rendering for
changed-file entries
- Kept flat view available for status-sorted changed files

Tests:

- cargo check -p git_graph

Release Notes:

- Improved commit details changed-file lists with an optional tree view
```

## Parents

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

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