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
3625f395
Commit
3625f395
authored
Jan 28, 2010
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make git-flow-version a first-class citizen amongst the other subcommands.
parent
170dc747
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
4 deletions
+33
-4
bump-version
bump-version
+6
-1
git-flow
git-flow
+1
-3
git-flow-version
git-flow-version
+26
-0
No files found.
bump-version
View file @
3625f395
...
@@ -8,6 +8,11 @@ if [ $# -ne 1 ]; then
...
@@ -8,6 +8,11 @@ if [ $# -ne 1 ]; then
exit
1
exit
1
fi
fi
echo
"GITFLOW_VERSION=
$1
"
>
git-flow-version
if
!
sed
's/^GITFLOW_VERSION=.*$/GITFLOW_VERSION='
$1
'/g'
git-flow-version
>
.git-flow-version.new
;
then
echo
"Could not replace GITFLOW_VERSION variable."
>
&2
exit
2
fi
mv
.git-flow-version.new git-flow-version
git add git-flow-version
git add git-flow-version
git commit
-m
"Bumped version number to
$1
"
git-flow-version
git commit
-m
"Bumped version number to
$1
"
git-flow-version
git-flow
View file @
3625f395
...
@@ -33,9 +33,6 @@ has() {
...
@@ -33,9 +33,6 @@ has() {
}
}
usage
()
{
usage
()
{
.
"
$GITFLOW_DIR
/git-flow-version"
echo
"git-flow, version
$GITFLOW_VERSION
"
echo
echo
"usage: git flow <subcommand>"
echo
"usage: git flow <subcommand>"
echo
echo
echo
"Available subcommands are:"
echo
"Available subcommands are:"
...
@@ -44,6 +41,7 @@ usage() {
...
@@ -44,6 +41,7 @@ usage() {
echo
" release Manage your release branches."
echo
" release Manage your release branches."
echo
" hotfix Manage your hotfix branches."
echo
" hotfix Manage your hotfix branches."
echo
" support Manage your support branches."
echo
" support Manage your support branches."
echo
" version Shows version information."
echo
echo
echo
"Try 'git flow <subcommand> help' for details."
echo
"Try 'git flow <subcommand> help' for details."
}
}
...
...
git-flow-version
View file @
3625f395
#
# git-flow -- A collection of Git extensions to provide high-level
# repository operations for Vincent Driessen's branching model.
#
# Original blog post presenting this model is found at:
# http://nvie.com/archives/323
#
# Feel free to contribute to this project at:
# http://github.com/nvie/gitflow
#
# Copyright (c) 2010 by Vincent Driessen
# Copyright (c) 2010 by Benedikt Böhm
#
GITFLOW_VERSION=0.2-dirty
GITFLOW_VERSION=0.2-dirty
usage() {
echo "usage: git flow version"
}
cmd_help() {
usage
exit 0
}
cmd_default() {
echo "$GITFLOW_VERSION"
}
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