From: Junio C Hamano Date: Thu, 23 Nov 2023 04:28:43 +0000 (+0900) Subject: V: use the describe --long format X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87abcd426a0386f348b360150d26d00b2075f2de;p=thirdparty%2Fgit.git V: use the describe --long format This will hopefully help catching a mistake to tag different commits with the same tag again. --- diff --git a/V b/V index d13d960e3c..8dee018a23 100755 --- a/V +++ b/V @@ -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"