Commit ff275fa6 authored by Nowell Strite's avatar Nowell Strite Committed by Vincent Driessen

Changed versiontag prefix to allow addition of dynamic data (i.e. date)

For example, you could set the versiontag prefix to be:

    git config --global gitflow.prefix.versiontag "production/\$(date +%Y/%m/%d/)"

which would result in tag names like:

    production/2010/09/22/my-hotfix-or-feature-name

NOTE:
Although this is a useful addition in the current version of git-flow,
in a future reimplementation of it in Python, this will be replaced by
hook scripts, so be sure not to rely on this feature too much for now.
parent 8fee0c22
......@@ -39,7 +39,7 @@
require_git_repo
require_gitflow_initialized
gitflow_load_settings
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
VERSION_PREFIX=$(eval "echo `git config --get gitflow.prefix.versiontag`")
PREFIX=$(git config --get gitflow.prefix.hotfix)
usage() {
......
......@@ -39,7 +39,7 @@
require_git_repo
require_gitflow_initialized
gitflow_load_settings
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
VERSION_PREFIX=$(eval "echo `git config --get gitflow.prefix.versiontag`")
PREFIX=$(git config --get gitflow.prefix.release)
usage() {
......
......@@ -39,7 +39,7 @@
require_git_repo
require_gitflow_initialized
gitflow_load_settings
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
VERSION_PREFIX=$(eval "echo `git config --get gitflow.prefix.versiontag`")
PREFIX=$(git config --get gitflow.prefix.support)
warn "note: The support subcommand is still very EXPERIMENTAL!"
......
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