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
ea608951
Commit
ea608951
authored
Jan 29, 2010
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document which subcommands may use the prefix.
parent
8392ed32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
git-flow-feature
git-flow-feature
+9
-9
No files found.
git-flow-feature
View file @
ea608951
...
@@ -18,10 +18,10 @@ FLAG_FETCH=0
...
@@ -18,10 +18,10 @@ FLAG_FETCH=0
usage() {
usage() {
echo "usage: git flow feature [list]"
echo "usage: git flow feature [list]"
echo " git flow feature start <name> [<base>]"
echo " git flow feature start <name> [<base>]"
echo " git flow feature finish <name> [<base>]"
echo " git flow feature finish <name
|nameprefix
> [<base>]"
echo " git flow feature publish <name>"
echo " git flow feature publish <name>"
echo " git flow feature track <name>"
echo " git flow feature track <name>"
echo " git flow feature diff <name>"
echo " git flow feature diff <name
|nameprefix
>"
# TODO
# TODO
#echo ""
#echo ""
#echo "options:"
#echo "options:"
...
@@ -102,18 +102,18 @@ parse_args_common() {
...
@@ -102,18 +102,18 @@ parse_args_common() {
BRANCH=$PREFIX$NAME
BRANCH=$PREFIX$NAME
}
}
parse_args() {
parse_args
_with_name_prefix
() {
get_name_by_prefix "$1"
get_name_by_prefix "$1"
parse_args_common
parse_args_common
}
}
parse_args
_with_name_prefix
() {
parse_args() {
NAME="$1"
NAME="$1"
parse_args_common
parse_args_common
}
}
cmd_start() {
cmd_start() {
parse_args
_with_name_prefix
"$@"
parse_args "$@"
# sanity checks
# sanity checks
gitflow_require_clean_working_tree
gitflow_require_clean_working_tree
...
@@ -141,7 +141,7 @@ cmd_start() {
...
@@ -141,7 +141,7 @@ cmd_start() {
}
}
cmd_finish() {
cmd_finish() {
parse_args "$@"
parse_args
_with_name_prefix
"$@"
# sanity checks
# sanity checks
gitflow_require_branch $BRANCH
gitflow_require_branch $BRANCH
...
@@ -248,7 +248,7 @@ helper_finish_cleanup() {
...
@@ -248,7 +248,7 @@ helper_finish_cleanup() {
}
}
cmd_publish() {
cmd_publish() {
parse_args
_with_name_prefix
"$@"
parse_args "$@"
# sanity checks
# sanity checks
gitflow_require_clean_working_tree
gitflow_require_clean_working_tree
...
@@ -274,7 +274,7 @@ cmd_publish() {
...
@@ -274,7 +274,7 @@ cmd_publish() {
}
}
cmd_track() {
cmd_track() {
parse_args
_with_name_prefix
"$@"
parse_args "$@"
# sanity checks
# sanity checks
gitflow_require_clean_working_tree
gitflow_require_clean_working_tree
...
@@ -293,7 +293,7 @@ cmd_track() {
...
@@ -293,7 +293,7 @@ cmd_track() {
}
}
cmd_diff() {
cmd_diff() {
parse_args "$@"
parse_args
_with_name_prefix
"$@"
# TODO: if this feature has been based on a non-develop branch, we really
# TODO: if this feature has been based on a non-develop branch, we really
# should not be comparing to $DEVELOP. How to deal with this?
# should not be comparing to $DEVELOP. How to deal with this?
git diff $DEVELOP_BRANCH..$BRANCH
git diff $DEVELOP_BRANCH..$BRANCH
...
...
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