Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Explicitly get the default values from the system and global config.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderdoes committed May 23, 2019
1 parent 6410769 commit 5bdf3a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# Changelog

#### 1.12.3-dev0
* Preparation for next release
* Explicitly get the default values from the system and global config.

#### 1.12.2
* Missing parentheses (Thanks [Tiscs Sun][Tiscs] )
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gitflow-shFlags is released under LGPL, see License #3
************************************************************

LICENSE #1:
Copyright (c) 2012-2015 Peter van der Does
Copyright (c) 2012-2019 Peter van der Does
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -563,4 +563,4 @@ necessary. Here is a sample; alter the names:
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice

That's all there is to it!
That's all there is to it!
12 changes: 6 additions & 6 deletions git-flow-init
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ file= use given config file
if [ "$FLAGS_feature" != "" ]; then
default_suggestion=$(echo $FLAGS_feature)
else
default_suggestion=$(git config --get gitflow.prefix.feature || echo feature/)
default_suggestion=$(git config --get --system gitflow.prefix.feature || git config --get --global gitflow.prefix.feature || echo feature/)
fi
printf "Feature branches? [$default_suggestion] "
if noflag defaults; then
Expand All @@ -326,7 +326,7 @@ file= use given config file
if [ "$FLAGS_bugfix" != "" ]; then
default_suggestion=$(echo $FLAGS_bugfix)
else
default_suggestion=$(git config --get gitflow.prefix.bugfix || echo bugfix/)
default_suggestion=$(git config --get --system gitflow.prefix.bugfix || git config --get --global gitflow.prefix.bugfix || echo bugfix/)
fi
printf "Bugfix branches? [$default_suggestion] "
if noflag defaults; then
Expand All @@ -343,7 +343,7 @@ file= use given config file
if [ "$FLAGS_release" != "" ]; then
default_suggestion=$(echo $FLAGS_release)
else
default_suggestion=$(git config --get gitflow.prefix.release || echo release/)
default_suggestion=$(git config --get --system gitflow.prefix.release || git config --get --global gitflow.prefix.release || echo release/)
fi
printf "Release branches? [$default_suggestion] "
if noflag defaults; then
Expand All @@ -360,7 +360,7 @@ file= use given config file
if [ "$FLAGS_hotfix" != "" ]; then
default_suggestion=$(echo $FLAGS_hotfix)
else
default_suggestion=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
default_suggestion=$(git config --get --system gitflow.prefix.hotfix || git config --get --global gitflow.prefix.hotfix || echo hotfix/)
fi
printf "Hotfix branches? [$default_suggestion] "
if noflag defaults; then
Expand All @@ -377,7 +377,7 @@ file= use given config file
if [ "$FLAGS_support" != "" ]; then
default_suggestion=$(echo $FLAGS_support)
else
default_suggestion=$(git config --get gitflow.prefix.support || echo support/)
default_suggestion=$(git config --get --system gitflow.prefix.support || git config --get --global gitflow.prefix.support || echo support/)
fi
printf "Support branches? [$default_suggestion] "
if noflag defaults; then
Expand All @@ -394,7 +394,7 @@ file= use given config file
if [ "$FLAGS_tag" != "" ]; then
default_suggestion=$(echo $FLAGS_tag)
else
default_suggestion=$(git config --get gitflow.prefix.versiontag || echo "")
default_suggestion=$(git config --get --system gitflow.prefix.versiontag || git config --get --global gitflow.prefix.versiontag || echo "")
fi
printf "Version tag prefix? [$default_suggestion] "
if noflag defaults; then
Expand Down

0 comments on commit 5bdf3a6

Please sign in to comment.