# git_ui: Add support for generating commit messages with an LLM \(\#26227\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b8a8b9c69912341304d45658fbda87619aebc1e0

Requested commit: b8a8b9c69912341304d45658fbda87619aebc1e0

Commit: b8a8b9c69912341304d45658fbda87619aebc1e0

Tree: bcded140d83a263c1c48b9277e67cf9e35dfadec

Author: Marshall Bowers

Committer: GitHub

## Message

```
git_ui: Add support for generating commit messages with an LLM (#26227)

This PR finishes up the support for generating commit messages using an
LLM.

We're shelling out to `git diff` to get the diff text, as it seemed more
efficient than attempting to reconstruct the diff ourselves from our
internal Git state.


https://github.com/user-attachments/assets/9bcf30a7-7a08-4f49-a753-72a5d954bddd

Release Notes:

- Git Beta: Added support for generating commit messages using a
language model.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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