diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2016-04-05 16:50:14 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2016-04-05 16:50:14 +0200 |
commit | 5f1fcf5e77ebacd5271435fc450446cedcd64aa8 (patch) | |
tree | dd4f1274c5a89d63bc944e1c618466fbe2c76b02 /script | |
parent | b96fba1de92332372f08d42cd19e417cc1adf7ef (diff) |
version: Let Git provide meaningful information
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'script')
-rwxr-xr-x | script/get_git_rev.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/get_git_rev.sh b/script/get_git_rev.sh index c5ef9457..3cf335f1 100755 --- a/script/get_git_rev.sh +++ b/script/get_git_rev.sh @@ -6,7 +6,7 @@ FILE=$2 if [ -d "${DIR}/.git/" ] then echo -n "#define GIT_VERSION \"" > ${FILE}.tmp - REV=$(git log -1 --pretty=tformat:%h) + REV="$(git describe --tags --always --dirty) ($(git describe --tags --always --all | sed -e 's:heads/::'))" echo -n "${REV}" >> ${FILE}.tmp echo "\"" >> ${FILE}.tmp else |