Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Don't allow empty commits #91

Closed
joshaber opened this issue Mar 14, 2016 · 6 comments
Closed

Don't allow empty commits #91

joshaber opened this issue Mar 14, 2016 · 6 comments
Assignees

Comments

@joshaber
Copy link
Contributor

I just noticed that we're fine with creating an empty commit. We should probably not allow that.

@joshaber
Copy link
Contributor Author

@simurai Any thoughts on what the error state looks like?

@joshaber
Copy link
Contributor Author

Or just disable the button until there are staged changes? But maybe that's not obvious enough?

@simurai
Copy link
Contributor

simurai commented Mar 15, 2016

Or just disable the button until there are staged changes? But maybe that's not obvious enough?

Maybe also show a notification? Or flash/shake the list as a more subtle hint.

@simurai
Copy link
Contributor

simurai commented Mar 15, 2016

Also, should writing a commit message be required? Then we could also flash/shake the commit editor in case it's empty.

@joshaber
Copy link
Contributor Author

Also, should writing a commit message be required?

Probably. I'd say if they want to make a commit without a message, they can take that shit to the command line.

@simurai
Copy link
Contributor

simurai commented Mar 16, 2016

Ok.. if you add a class to the list and commit editor, I'll add some sort of flashing/shaking. Maybe is-required? Kinda like when filling out a form. Or is-incomplete, needs-action

Ohh.. wait: is-💩

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

No branches or pull requests

2 participants