# Rework shared commit editors \(\#24274\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 868e3f75b238fdbff14e5f1febbbab1d426141ae

Requested commit: 868e3f75b238fdbff14e5f1febbbab1d426141ae

Commit: 868e3f75b238fdbff14e5f1febbbab1d426141ae

Tree: c5e8dfee15548da2e61747eb843e5b213a7673c3

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Rework shared commit editors (#24274)

Rework of https://github.com/zed-industries/zed/pull/24130
Uses
https://github.com/d1y/git_firefly/tree/1033c0b57ec88a002cb68efc64c8d9bf5c212e30
`COMMIT_EDITMSG` language-related definitions (thanks @d1y )

Instead of using real `.git/COMMIT_EDITMSG` file, create a buffer
without FS representation, stored in the `Repository` and shared the
regular way via the `BufferStore`.
Adds a knowledge of what `Git Commit` language is, and uses it in the
buffers which are rendered in the git panel.


Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad@zed.dev>
Co-authored-by: d1y <chenhonzhou@gmail.com>
Co-authored-by: Smit <smit@zed.dev>
```

## Parents

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

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