3 for v
in maint master next pu
5 installed
=$
($HOME/git-
$v/bin
/git version
)
6 version
=$
(expr "$installed" : '.*\.g\([0-9a-f]*\)$') ||
7 version
=v$
(expr "$installed" : 'git version \(.*\)')
9 version
=$
(git rev-parse
--verify "$version^0" 2>/dev
/null
)
10 revision
=$
(git show-ref
-s --verify "refs/heads/$v")
11 if test "z$version" = "z$revision"
15 in="\e[41;37m" out
="\e[m" installed
=" $installed"
17 echo "$in$v$out $(git-describe refs/heads/$v)$installed"