Skip to content

Commit

Permalink
Changed versiontag prefix to allow addition of dynamic data (i.e. date)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nowells authored and nvie committed Oct 5, 2010
1 parent 8fee0c2 commit ff275fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git-flow-hotfix
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion git-flow-release
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion git-flow-support
Expand Up @@ -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!"
Expand Down

0 comments on commit ff275fa

Please sign in to comment.