# editor: Extract more git related stuff out of \`editor.rs\` \(\#56198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 75deffd4f75f741aaead7639e5a71c1f91952438

Requested commit: 75deffd4f75f741aaead7639e5a71c1f91952438

Commit: 75deffd4f75f741aaead7639e5a71c1f91952438

Tree: 336fe9628d94b6730f0f6b0448bcd748ebf05b38

Author: Mikhail Pertsev

Committer: GitHub

## Message

```
editor: Extract more git related stuff out of `editor.rs` (#56198)

cc @SomeoneToIgnore

## Summary

Follow-up to #56155. I extracted the remaining git related things (again
not all of them, leftovers are more tricky as there are git + fold +
some others things combined) into `git.rs`

We nod reached a good milestone, the `editor.rs` would be below 20k
lines now

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

Release Notes:

- N/A
```

## Parents

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

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