peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 147 forks source link

Commit all changes before tagging #115

Closed walidsa3d closed 8 years ago

walidsa3d commented 8 years ago

It would be nice to add an option to commit all changes before tagging (instead of some specific files).

peritus commented 8 years ago

How about

git commit -av
bumpversion patch

.. would that work for you ?

walidsa3d commented 8 years ago

bumpversion makes changes that need to be commited too

peritus commented 8 years ago

Yes, the commands I posted would result in two commits.

I'm having a hard time here grasping what you want from your two sentences. Can you elaborate a little ?

walidsa3d commented 8 years ago

Exactly, I don't want to pollute my commit history with commits that contain only changes to setup.py and setup.cfg. I want a workflow like this: -Bump version (in files) -Commit all -Tag

peritus commented 8 years ago

That sounds very similar to #38 .. could you go over there and have a look whether my proposals there would also fit your usecase ? If not, could you comment there what your usecase would need ?

Thanks for bringing this up :)