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
170dc747
Commit
170dc747
authored
Jan 28, 2010
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored the feature, release and support subcommands, too.
parent
186d2b5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
git-flow-feature
git-flow-feature
+2
-2
git-flow-release
git-flow-release
+14
-2
git-flow-support
git-flow-support
+13
-1
No files found.
git-flow-feature
View file @
170dc747
...
...
@@ -47,8 +47,8 @@ parse_args() {
}
cmd_default() {
# TODO:
refactor this, because passing in this dummy "foo" is really ugly!
parse_args "$@" foo
# TODO:
Refactor getting this prefix into a general function
PREFIX=$(git config --get gitflow.prefix.feature || echo feature/)
FEATURE_BRANCHES="$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")"
if [ -z "$FEATURE_BRANCHES" ]; then
warn "No feature branches exist."
...
...
git-flow-release
View file @
170dc747
...
...
@@ -13,8 +13,9 @@
#
usage() {
echo "usage: git flow start release <version>"
echo " git flow finish release <version>"
echo "usage: git flow release"
echo " git flow release start <version>"
echo " git flow release finish <version>"
# TODO
#echo ""
#echo "options:"
...
...
@@ -40,6 +41,17 @@ parse_args() {
BRANCH=$PREFIX$VERSION
}
cmd_default() {
# TODO: Refactor getting this prefix into a general function
PREFIX=$(git config --get gitflow.prefix.release || echo release/)
RELEASE_BRANCHES="$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")"
if [ -z "$RELEASE_BRANCHES" ]; then
warn "No release branches exist."
exit 0
fi
echo "$RELEASE_BRANCHES" | sed "s?^$PREFIX??g"
}
cmd_help() {
usage
exit 0
...
...
git-flow-support
View file @
170dc747
...
...
@@ -13,7 +13,8 @@
#
usage() {
echo "usage: git flow start support <version> [<base>]"
echo "usage: git flow support"
echo " git flow support start <version> [<base>]"
}
parse_args() {
...
...
@@ -29,6 +30,17 @@ parse_args() {
BRANCH=$PREFIX$VERSION
}
cmd_default() {
# TODO: Refactor getting this prefix into a general function
PREFIX=$(git config --get gitflow.prefix.support || echo support/)
SUPPORT_BRANCHES="$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")"
if [ -z "$SUPPORT_BRANCHES" ]; then
warn "No support branches exist."
exit 0
fi
echo "$SUPPORT_BRANCHES" | sed "s?^$PREFIX??g"
}
cmd_help() {
usage
exit 0
...
...
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