nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
http://nvie.com/posts/a-successful-git-branching-model/
Other
26.63k stars 2.66k forks source link

Support for semver #6386

Open willgopublic opened 7 years ago

willgopublic commented 7 years ago

Please add support for semver.org version tagging/naming for hotfixes. e.g. git flow hotfix start should (if configured to use semver) create a branch named hotfix/a.b.c where c is previous value for c plus 1 .

git flow hotfix start \
$(git tag --sort=taggerdate | tail -1 | cut -d '.' -f 1,2 )'.'\
$(( $( git tag --sort=taggerdate | tail -1 | cut -d '.' -f 3 ) + 1 ))