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

Ask before create commit. #52

Open
paperkotter opened this issue Jun 7, 2016 · 2 comments
Open

Ask before create commit. #52

paperkotter opened this issue Jun 7, 2016 · 2 comments

Comments

@paperkotter
Copy link

I have this use case.

Latest version: v1.0.1
Succesfully committed changes 'Released v1.0.2' locally.
[?] About to create tag 'v1.0.2' and push to remote 'origin', proceed?: No
Aborted.

Commit ''Released v1.0.2' still there, even I said No.

So, can I ask before commit creates ?

@slindberg
Copy link
Contributor

Sounds like what you want to do is see what version will be created without any changes. Would a --check or --dry-run flag that just prints what the next version will be satisfy your use case?

@leizhao4
Copy link

I would like this feature too. A --dry-run flag is less ideal because it would be annoying to do it every time. My use case is when it accidentally creates a wrong version number (for example, when I forget to add --prerelease flag when I just want to increment the prerelease version), I can easily cancel it, without having to reset the commit afterwards.

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

3 participants