V: use the describe --long format

This will hopefully help catching a mistake to tag different commits
with the same tag again.
This commit is contained in:
Junio C Hamano 2023-11-23 13:28:43 +09:00
parent ffc30cf220
commit 87abcd426a

4
V
View File

@ -55,7 +55,7 @@ do
in="" out=""
installed=" none"
else
installed=$(git describe $version)
installed=$(git describe --long $version)
case "$dirty" in
'')
;;
@ -65,7 +65,7 @@ do
in="" out="" installed=" $installed"
fi
output="$output${output:+$LF}"
output="$output$in$v$out$installed $(git describe refs/heads/$v)"
output="$output$in$v$out$installed $(git describe --long refs/heads/$v)"
done
echo "$output"