From b22a076431b711b558502f7f37eb54281aabd01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20B=C3=B6hm?= Date: Thu, 28 Jan 2010 01:07:06 +0800 Subject: [PATCH] make version tag prefix configurable so one can use it for github semver.org compliance --- git-flow-release | 3 ++- git-flow-support | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/git-flow-release b/git-flow-release index e1e261817..ff422e0e1 100644 --- a/git-flow-release +++ b/git-flow-release @@ -29,6 +29,7 @@ usage() { } parse_args() { + VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag) VERSION="$1" if [ "$VERSION" = "" ]; then echo "Missing argument ." @@ -82,7 +83,7 @@ cmd_finish() { # merge into master git checkout $MASTER_BRANCH git merge --no-ff $BRANCH - git tag $VERSION + git tag $VERSION_PREFIX$VERSION # merge into develop git checkout $DEVELOP_BRANCH diff --git a/git-flow-support b/git-flow-support index 61e19a7f5..d855eaa99 100644 --- a/git-flow-support +++ b/git-flow-support @@ -17,8 +17,9 @@ usage() { } parse_args() { + VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag) VERSION="$1" - BASE="${2:-${VERSION}}" + BASE="${2:-${VERSION_PREFIX}${VERSION}}" if [ "$VERSION" = "" ]; then echo "Missing argument ." usage