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
78a8c1a68aCole Miller committed on 1/22/2025, 11:04:14 PM· committed by GitHubparentdb65ee0
2 files changedLine totals unavailable