# git_ui: Add split controls to commit view \(\#58163\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 52956d93e4cf219b078a1c9dd1f70ee959ba0089

Requested commit: 52956d93e4cf219b078a1c9dd1f70ee959ba0089

Commit: 52956d93e4cf219b078a1c9dd1f70ee959ba0089

Tree: d50e9113d8db7c3116943f1aa4c88d6eec3666a3

Author: Sathwik Chirivelli

Committer: GitHub

## Message

```
git_ui: Add split controls to commit view (#58163)

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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Summary:

- Added split/unified diff controls to the commit history commit view
using `SplittableEditor`.
- Kept commit messages separate from file diffs with an 8-line
scrollable message panel.
- Fixed split setup edge cases and async/test type mismatches from the
commit view changes.

Verification:

- `cargo check -p git_ui`
- `cargo check -p git_ui --tests`
- `cargo check -p editor --tests`
- `./script/clippy -p git_ui`
- `git diff --check`

Release Notes:

- Improved the commit history diff view by adding the ability to toggle
the split diff mode.

---------

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

## Parents

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

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