[Bug] Bump commits ALL files
See original GitHub issueDescription
Instead of committing just all files containing a version ALL changed files are committed (new ones are not just changed ones). This is not good if a change is not meant to be included in the release.
While this can be avoided by branching it should still behave different as git add .
and git commit <whatever>
is very carelessly.
Steps to reproduce
- Create repo and add cz config file
- Add
file1.txt
andfile2.txt
- stage and Commit
file1
cz bump
(Behaves as expected)- Commit the adding of
file2
- Change the content of
file1
and don’t stage it cz bump
You will see that all changes of file1
are commited in the bump: 0.0.1 -> 0.0.2
commit
Desired behavior
When executing a cz bump
- Stash the changes and added files (staged and unstaged the same)
- Warn the user if he has Staged files because they will be merged with the unstaged ones when stashing
- Execute the bump
- Pop the stash
- Delete the stash
Environment
-
commitizen version:2.13.0
-
python version:Python 2.7.17
-
operating system:Linux
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Version Bump Prompt - JavaScript Dev Tools
Interactive CLI that bumps your version numbers and more. ... -a, --all Commit/tag/push ALL pending files, not just the ones that were bumped....
Read more >Git - Bioconductor
Checks and version bumps. Each commit pushed to the Bioconductor repository should build and check without errors or warnings BiocGenerics$ cd .. R...
Read more >conventional commit messaging
fix: a commit of the type fix patches a bug in your codebase (this correlates ... e.g., a fix: , feat: & chore:...
Read more >Generating changelog automatically with Standard Version
The “fix” type indicates that this commit removes a bug in the codebase. Creating a release with such a commit results in bumping...
Read more >Automated Releases - Melos
Conventional Commits. Currently the following commit types trigger a version bump: docs - A documentation change. feat - A new feature. fix -...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m in as a positional argument as well. I’d like to see an implementation 👍🏻
The “auto stashing” option sounds good to me as long as we do not set it as the default behavior. If we’d like to do so in the future, we’ll need to bump a major version