@soramimi,
it is possible to create git commit without staged files, commit function will take a long time to execute, but it will give an error. It is necessary to initially warn user that there is not a single file for git commit.
Example: commit locked button - if there are no staged files or ShowMessageBox to user.