Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
gitflow
Commits
5f860bf3
Commit
5f860bf3
authored
Feb 05, 2011
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite Joseph Levin's solution a bit.
Thanks Joseph! I've added you to the AUTHORS file, too.
parent
cc5382de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
AUTHORS
AUTHORS
+1
-0
git-flow-init
git-flow-init
+9
-9
No files found.
AUTHORS
View file @
5f860bf3
...
...
@@ -10,5 +10,6 @@ Authors are (ordered by first commit date):
- Nowell Strite
- Felipe Talavera
- Guillaume-Jean Herbiet
- Joseph A. Levin
Portions derived from other open source works are clearly marked.
git-flow-init
View file @
5f860bf3
...
...
@@ -37,7 +37,7 @@
#
usage() {
echo "usage: git flow init [-f
] [--defaults
]"
echo "usage: git flow init [-f
d
]"
}
parse_args() {
...
...
@@ -49,7 +49,7 @@ parse_args() {
# Default entry when no SUBACTION is given
cmd_default() {
DEFINE_boolean force false 'force setting of gitflow branches, even if already configured' f
DEFINE_boolean defaults false 'use default branch nam
es' 'defaults'
DEFINE_boolean defaults false 'use default branch nam
ing conventions' d
parse_args "$@"
if ! git rev-parse --git-dir >/dev/null 2>&1; then
...
...
@@ -108,7 +108,7 @@ cmd_default() {
fi
printf "Branch name for production releases: [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -155,7 +155,7 @@ cmd_default() {
fi
printf "Branch name for \"next release\" development: [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -229,7 +229,7 @@ cmd_default() {
if ! git config --get gitflow.prefix.feature >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.feature || echo feature/)
printf "Feature branches? [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -242,7 +242,7 @@ cmd_default() {
if ! git config --get gitflow.prefix.release >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.release || echo release/)
printf "Release branches? [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -256,7 +256,7 @@ cmd_default() {
if ! git config --get gitflow.prefix.hotfix >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
printf "Hotfix branches? [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -270,7 +270,7 @@ cmd_default() {
if ! git config --get gitflow.prefix.support >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.support || echo support/)
printf "Support branches? [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
@@ -284,7 +284,7 @@ cmd_default() {
if ! git config --get gitflow.prefix.versiontag >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.versiontag || echo "")
printf "Version tag prefix? [$default_suggestion] "
if
!
flag defaults; then
if
no
flag defaults; then
read answer
else
printf "\n"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment