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