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
bd4f0951
Commit
bd4f0951
authored
Jan 27, 2010
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cmd_list and cmd_diff to git-flow-feature.
parent
4e5c3e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
git-flow-feature
git-flow-feature
+21
-1
No files found.
git-flow-feature
View file @
bd4f0951
...
@@ -13,10 +13,12 @@
...
@@ -13,10 +13,12 @@
#
#
usage() {
usage() {
echo "usage: git flow start feature <name> [<base>]"
echo "usage: git flow list feature"
echo " git flow start feature <name> [<base>]"
echo " git flow finish feature <name> [<base>]"
echo " git flow finish feature <name> [<base>]"
echo " git flow publish feature <name>"
echo " git flow publish feature <name>"
echo " git flow track feature <name>"
echo " git flow track feature <name>"
echo " git flow diff feature <name>"
# TODO
# TODO
#echo ""
#echo ""
#echo "options:"
#echo "options:"
...
@@ -154,3 +156,21 @@ cmd_track() {
...
@@ -154,3 +156,21 @@ cmd_track() {
echo "- You are now on branch '$BRANCH'"
echo "- You are now on branch '$BRANCH'"
echo
echo
}
}
cmd_list() {
# TODO: refactor this, because passing in this dummy "foo" is really ugly!
parse_args "$@" foo
FEATURE_BRANCHES="$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")"
if [ -z "$FEATURE_BRANCHES" ]; then
warn "No feature branches exist."
exit 1
fi
echo "$FEATURE_BRANCHES" | sed "s?^$PREFIX??g"
}
cmd_diff() {
parse_args "$@"
# 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?
git diff $DEVELOP..$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