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
index 158183918d..d13d960e3c 100755
--- a/V
+++ b/V
@@ -14,6 +14,9 @@ inst_prefix=$(
echo $HOME
)
+LF='
+'
+output=
for v in maint master next jch seen
do
installed=$(
@@ -61,5 +64,9 @@ do
esac
in="[41;37m" out="[m" installed=" $installed"
fi
- echo "$in$v$out$installed $(git describe refs/heads/$v)"
+ output="$output${output:+$LF}"
+ output="$output$in$v$out$installed $(git describe refs/heads/$v)"
done
+
+echo "$output"
+echo "$output" | sha1sum | sed -e 's/ .*//'