# git: Disable commit message generation when commit not possible \(\#26329\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d732b8ba0fe1989dbafa06a5afe0da5cb3fcbc67

Requested commit: d732b8ba0fe1989dbafa06a5afe0da5cb3fcbc67

Commit: d732b8ba0fe1989dbafa06a5afe0da5cb3fcbc67

Tree: 8e6c8c1cf47bb9ea19e81baef0eaae3254635dac

Author: Richard Hao

Committer: GitHub

## Message

```
git: Disable commit message generation when commit not possible (#26329)

## Issue:

- `Generate Commit Message` will generate a random message if there are
no changes.
<img width="614" alt="image"
src="https://github.com/user-attachments/assets/c16cadac-01af-47c0-a2db-a5bbf62f84bb"
/>


## After Fixed:

- `Generate Commit Message` will be disabled if commit is not possible
<img width="610" alt="image"
src="https://github.com/user-attachments/assets/5ea9ca70-6fa3-4144-ab4e-be7a986d5496"
/>


## Release Notes:

- Fixed: Disable commit message generation when commit is not possible
```

## Parents

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

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