godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
656 stars 64 forks source link

Warn when making a commit with 0 changes #220

Open Reonu opened 5 months ago

Reonu commented 5 months ago

I keep forgetting to actually stage the changes and making commits with no changes at all. Maybe show the user a warning so that they can confirm if they're doing it on purpose?

NostalgiaNinja commented 4 months ago

Can an option be provided to stage all changes or cancel the commit so that we can stage the change when it happens? This would help with empty commits. (I had to make a duplicate commit as a result)

perroboc commented 3 months ago

A suggestion: Just a checkbox that allows empty commits. If empty commits are disabled, block the commit when no changes are staged.