# git: No-op when trying to commit with nothing staged or no commit message \(\#23491\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 78a8c1a68a8722140470cf268f6e6499c60ce4b2

Requested commit: 78a8c1a68a8722140470cf268f6e6499c60ce4b2

Commit: 78a8c1a68a8722140470cf268f6e6499c60ce4b2

Tree: b088037a217dd68d68fd0fb444604f7667a093cd

Author: Cole Miller

Committer: GitHub

## Message

```
git: No-op when trying to commit with nothing staged or no commit message (#23491)

The buttons are disabled in this case, but users can still trigger a
commit via the actions directly, and an error toast seems a bit loud for
this.

cc @iamnbutler 

Release Notes:

- N/A
```

## Parents

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

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