Add static shell variable that specifies the gitflow release version.
diff --git a/gitflow b/gitflow
index 77373c6..28da0af 100755
--- a/gitflow
+++ b/gitflow
@@ -12,9 +12,15 @@
# Copyright (c) 2010 by Vincent Driessen
#
+export GITFLOW_DIR=$(dirname "$0")
+
usage() {
+ . "$GITFLOW_DIR/gitflow-version"
+ echo "gitflow, version $GITFLOW_VERSION"
+ echo ""
echo "usage: gitflow <start|finish> <type> <args>"
echo ""
+ echo "arguments:"
echo "type can be any of: \"feature\", \"release\", \"hotfix\""
echo ""
}
@@ -37,7 +43,6 @@
fi
# Set & check arguments
-export GITFLOW_DIR=$(dirname "$0")
ACTION="$1"
BTYPE="$2"
shift 2
diff --git a/gitflow-version b/gitflow-version
new file mode 100644
index 0000000..31969cc
--- /dev/null
+++ b/gitflow-version
@@ -0,0 +1 @@
+GITFLOW_VERSION=0.0