Initial commit.
This commit is contained in:
7
scripts/shell_helpers/get_git_data.sh
Normal file
7
scripts/shell_helpers/get_git_data.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
# Gets git data.
|
||||
# Should be sourced where neccessary.
|
||||
|
||||
export BRANCHNAME=${BRANCHNAME:=$(git branch --no-color --show-current)}
|
||||
export BUILDID=${BUILDID:=$(git rev-list HEAD --count)}
|
||||
export COMMITHASH=${COMMITHASH:=$(git rev-parse --verify HEAD)}
|
||||
export VERSION=${VERSION:="0.1.0-dev"}
|
Reference in New Issue
Block a user