peritus / bumpversion

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

Support current Git Hash #125

Open tomschr opened 8 years ago

tomschr commented 8 years ago

Luckily, bumpversion supports the major, minor, and patch style. However, sometimes, this is not enough.

For example, when you want to track the current Git hash it would be nice if bumpversion could support a {githash} variable as well. Can be retrieved with this command:

git rev-parse [--short] HEAD
funkyfuture commented 7 years ago

a lookahead for the commit after the bumpversion commit would be great. may this could be implemented using quantum mechanics.

JokerQyou commented 6 years ago

It could be achieved by doing a search for the version bumping message like this: git log --oneline | grep "Bump version"

manishtomar commented 4 years ago

This should be doable with commit=False where you just want to tag the current commit.

hkiang01 commented 3 years ago

I decided to roll my own. Check out version_upper