mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-18 21:41:16 +00:00
doc: prefix commit hash with branch name
This commit is contained in:
parent
2816575b06
commit
47f5232850
@ -3,11 +3,12 @@
|
||||
# get commit and tag
|
||||
tag=`git tag --points-at HEAD`
|
||||
commit=`git rev-parse --short HEAD`
|
||||
branch=`git branch | sed -n -e 's/^\* \(.*\)/\1/p'`
|
||||
|
||||
# use tag if available
|
||||
if [ -z "$tag" ]
|
||||
then
|
||||
version="Commit $commit"
|
||||
version="$branch-$commit"
|
||||
else
|
||||
version="Version $tag ($commit)"
|
||||
fi
|
||||
|
@ -3,11 +3,12 @@
|
||||
# get commit and tag
|
||||
tag=`git tag --points-at HEAD`
|
||||
commit=`git rev-parse --short HEAD`
|
||||
branch=`git branch | sed -n -e 's/^\* \(.*\)/\1/p'`
|
||||
|
||||
# use tag if available
|
||||
if [ -z "$tag" ]
|
||||
then
|
||||
version=$commit
|
||||
version="$branch-$commit"
|
||||
else
|
||||
version=$tag
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user