You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check for staged commits before questionnaire #785
Sometimes I forget to do git add <path>, so when I get to the end of the cli quesitonnaire, it gives me an error.
I then have to do git add <path> and then run the cli, going through the questionnaire again.
Doing this on a breaking change is frustrating because I have to rewrite what I just wrote.
Was this intended for a reason? If so, why? I'd like to hear about it.
i might not be the right person to answer your direct question, but you can avoid needing to go through the wizard a second time in cases like this using the --retry flag
I agree with @waynevanson. As the CLI is able to know upfront that there's nothing staged, I don't see why it asks for information. I think it would be better to just send a message like "There's nothing staged! To commit, first stage something."
Actually, I've just checked out the open issues and this one looks to be related to #585. Fixing that issue would resolve this one too.
Activity
travi commentedon Sep 25, 2020
i might not be the right person to answer your direct question, but you can avoid needing to go through the wizard a second time in cases like this using the
--retryflagwaynevanson commentedon Sep 26, 2020
@travi NICE! That's a good workaround for now, but will still love to hear what others have to say.
dbofmmbt commentedon Dec 10, 2020
I agree with @waynevanson. As the CLI is able to know upfront that there's nothing staged, I don't see why it asks for information. I think it would be better to just send a message like "There's nothing staged! To commit, first stage something."
Actually, I've just checked out the open issues and this one looks to be related to #585. Fixing that issue would resolve this one too.
fix(git-cz.js,staging.js): check for staged files before running prompt
test(tests/staging.js): preserve the functionality of the --all flag
github-actions commentedon Jul 17, 2022
🎉 This issue has been resolved in version 4.2.5 🎉
The release is available on:
Your semantic-release bot 📦🚀
fix(git-cz.js,staging.js): check for staged files before running prom…