Commit 96f44c07 authored by Benedikt Böhm's avatar Benedikt Böhm

make branch prefixes configurable

parent 350e7159
...@@ -3,8 +3,6 @@ TODO-list ...@@ -3,8 +3,6 @@ TODO-list
General configuration General configuration
--------------------- ---------------------
- Support configurable naming conventions (i.e. name prefixes) for supporting
branches, instead of fixed 'release-\*' and 'hotfix-\*'
Release branch support Release branch support
---------------------- ----------------------
......
...@@ -40,7 +40,8 @@ parse_args() { ...@@ -40,7 +40,8 @@ parse_args() {
usage usage
exit 1 exit 1
fi fi
BRANCH=feature/$NAME PREFIX=$(git config --get gitflow.prefix.feature || echo feature/)
BRANCH=$PREFIX$NAME
} }
cmd_help() { cmd_help() {
......
...@@ -35,7 +35,8 @@ parse_args() { ...@@ -35,7 +35,8 @@ parse_args() {
usage usage
exit 1 exit 1
fi fi
BRANCH=hotfix/$VERSION PREFIX=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
BRANCH=$PREFIX$VERSION
} }
cmd_help() { cmd_help() {
......
...@@ -35,7 +35,8 @@ parse_args() { ...@@ -35,7 +35,8 @@ parse_args() {
usage usage
exit 1 exit 1
fi fi
BRANCH=release/$VERSION PREFIX=$(git config --get gitflow.prefix.release || echo release/)
BRANCH=$PREFIX$VERSION
} }
cmd_help() { cmd_help() {
......
...@@ -24,7 +24,8 @@ parse_args() { ...@@ -24,7 +24,8 @@ parse_args() {
usage usage
exit 1 exit 1
fi fi
BRANCH=support/$VERSION PREFIX=$(git config --get gitflow.prefix.support || echo support/)
BRANCH=$PREFIX$VERSION
} }
cmd_help() { cmd_help() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment