# Enable collaborating editing of the commit message input inside the git panel \(\#24130\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a864168c27624230f8ac736bb1288e76183f7f9d

Requested commit: a864168c27624230f8ac736bb1288e76183f7f9d

Commit: a864168c27624230f8ac736bb1288e76183f7f9d

Tree: ba7e8cfba42aaa87307578b76d0db4d8f5b4782e

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Enable collaborating editing of the commit message input inside the git panel (#24130)

https://github.com/user-attachments/assets/200b88b8-249a-4841-97cd-fda8365efd00

Now all users in the collab/ssh session can edit the commit input
collaboratively, observing each others' changes live.

A real `.git/COMMIT_EDITMSG` file is opened, which automatically enables
its syntax highlight, but its original context is never used or saved on
disk — this way we avoid stale commit messages from previous commits
that git places there.

A caveat: previous version put some effort into preserving unfinished
commit messages on repo swtiches, but this version would not do that
— instead, it will be blank on startup, and use whatever
`.git/COMMIT_EDITMSG` contents on repo switch

Release Notes:

- N/A

---------

Co-authored-by: Cole Miller <cole@zed.dev>
```

## Parents

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

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