-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Feature request: Add --skip-empty to DOLT_COMMIT() #5678
Comments
There's no Git equivalent of this. https://git-scm.com/docs/git-commit I assume you want this for the programmatic use case. You don't want to check that something is changed in the working set before issuing the commit command. |
Yes, correct.
I don't want to have to check for this error |
Hey @jacobATcertifiedfoodDotinfo, thank you for this great feature request! 🙏 I've just merged in PR #6086, which adds support for the new Let us know if you have any more feedback on anything we can do to make Dolt work better for you! |
And... it's released now! You can find it in Dolt version 1.3.0 or higher. |
In Dolt #6086 a new option `--skip-empty` was added to the dolt_commit procedure as requested in dolthub/dolt#5678
https://docs.dolthub.com/sql-reference/version-control/dolt-sql-procedures#dolt_commit
Please add an option similar to
The new
--skip-empty
option covers a different use case, because I want to commit ONLY if there is something to commit. I do NOT want to get an error likeError 1105 (HY000): nothing to commit
.The text was updated successfully, but these errors were encountered: