Meta/V: give summary hash at the end

Junio C Hamano committed Sep 8, 2023 at 15:50 UTC 2a393571e576ebac27852cc637080df9812b75d1
1 file changed +8 -1
V
+8 -1
@@ -14,6 +14,9 @@ inst_prefix=$(
14 echo $HOME
15 )
16
17 +LF='
18 +'
19 +output=
20 for v in maint master next jch seen
21 do
22 installed=$(
@@ -61,5 +64,9 @@ do
64 esac
65 in="" out="" installed=" $installed"
66 fi
64 - echo "$in$v$out$installed $(git describe refs/heads/$v)"
67 + output="$output${output:+$LF}"
68 + output="$output$in$v$out$installed $(git describe refs/heads/$v)"
69 done
70 +
71 +echo "$output"
72 +echo "$output" | sha1sum | sed -e 's/ .*//'