# Suggest single tracked commit message only when nothing else is staged \(\#36347\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2075627d6c31a6661816335afc69e662ef0b60e2

Requested commit: 2075627d6c31a6661816335afc69e662ef0b60e2

Commit: 2075627d6c31a6661816335afc69e662ef0b60e2

Tree: 0eecba6c3ab06fbd350aa4264200ea1c8fd16c38

Author: Mahmud Ridwan

Committer: GitHub

## Message

```
Suggest single tracked commit message only when nothing else is staged (#36347)

Closes #36341

<img width="543" height="548" alt="image"
src="https://github.com/user-attachments/assets/ab76a32c-c622-4025-9b28-5accc8d3f04c"
/>

In the case where commit message was suggested based on single tracked
entry, this PR adds a clause to the condition to ensure there are no
staged entries.

Release Notes:

- Fixed commit message suggestion when there is one unstaged tracked
file, but multiple untracked files are staged.
```

## Parents

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

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