Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when making a commit with 0 changes #220

Open
Reonu opened this issue Feb 12, 2024 · 2 comments
Open

Warn when making a commit with 0 changes #220

Reonu opened this issue Feb 12, 2024 · 2 comments

Comments

@Reonu
Copy link

Reonu commented Feb 12, 2024

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?

@Calinou Calinou changed the title Feature request: warning when making a commit with 0 changes Warn when making a commit with 0 changes Feb 17, 2024
@NostalgiaNinja
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants