-
Notifications
You must be signed in to change notification settings - Fork 63
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
stg commit
allows empty patches
#158
Comments
joefiorini
added a commit
to joefiorini/stgit
that referenced
this issue
Oct 23, 2021
Hi @joefiorini. Thanks for submitting this issue. I protecting |
@jpgrayson Thanks for replying! I opened up #159 to fix this issue. |
joefiorini
added a commit
to joefiorini/stgit
that referenced
this issue
Oct 25, 2021
jpgrayson
added a commit
that referenced
this issue
Oct 27, 2021
`stg commit` now refuses to commit empty patches by default, but also learns the --allow-empty flag, which mirrors `git commit --allow-empty`, to override this behavior. Addresses #158 Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been caught by this a couple times. I create a patch, make changes to a file, then accidentally forget to
stg refresh
the change. If I usestg commit
it creates an empty commit that I can then push. Since empty commits require a flag in git it seems like *stg commitshould work the same way, with an
--allow-empty` flag to override.The text was updated successfully, but these errors were encountered: