# git: Fill the commit message buffer from MERGE_MSG \(\#24843\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4ff1173047029312494fd28bd90592efb04ae76a

Requested commit: 4ff1173047029312494fd28bd90592efb04ae76a

Commit: 4ff1173047029312494fd28bd90592efb04ae76a

Tree: 18d62814b1f49a3305b614f2fbd945fd012261f5

Author: Cole Miller

Committer: GitHub

## Message

```
git: Fill the commit message buffer from MERGE_MSG (#24843)

This PR uses the template merge message in `.git/MERGE_MSG` to populate
the commit message buffer in the git panel. This is done:

- when the commit message buffer is first created
- when the list of merge heads in .git changes, only if the buffer
doesn't already have some text in it

Hopefully this strikes a good balance between convenience and not
stomping on the user's toes.

Release Notes:

- N/A
```

## Parents

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

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