blob: 8724ed27e0c7f905a2e52c574a364d0b60e3a65d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env zsh
cd /${(j:/:)${(s:/:)0}[1,-4]}
for i in *(/,@); {
if [[ -d $i/.git ]] {
echo -n "$i git "
echo ${$(git --git-dir=$i/.git log -n 1)[2]}
} else {
echo "$i: Unsupported or no repository" >&2
}
}
|