lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Prompt user to use the --allow-empty-message flag when no commit message is specified

Open markosnarinian opened this issue 6 months ago • 2 comments

markosnarinian avatar May 26 '26 12:05 markosnarinian

What's yazi? Did you mean to file this in https://github.com/sxyazi/yazi?

If you did actually mean lazygit, then I disagree, but it's hard to argue when there's zero additional information. What's the use case?

stefanhaller avatar May 26 '26 19:05 stefanhaller

Hello, @stefanhaller. Sorry, I meant lazygit.

git commit supports the --allow-empty-message flag for commiting without a commit message. I believe lazygit should support that too. This is what I had in mind: When you don't specify a commit message, lazygit asks you if you want to commit without a commit message to make sure that you didn't hit enter by mistake. If you confirm lazygit uses the --allow-empty-message to commit.

This should probably be labeled with feature instead of bug, I don't think I have the permission to change it though.

What do you think? Should I try this out?

markosnarinian avatar May 27 '26 04:05 markosnarinian