2 # Generate list of available git repositories
6 -------------------------------+------------------+---------------------------
7 Repository name | Latest change | Description, upstream URLs
8 -------------------------------+------------------+---------------------------
11 find . -name '*.git' -maxdepth 1 -mindepth 1 | sort | while read dir ; do
13 for commit in master main trunk ; do
14 mtime=`git cat-file -p $commit 2>/dev/null | perl -lane 'print $F[$#F - 1] if /^author/'`
15 [ -z "$mtime" ] || break
17 [ -z "$mtime" ] || mtime=`date -u -j -f %s $mtime "+%Y-%m-%d %H:%M"`
18 printf "%-30s | %16s | %s\n" ${dir#./} "$mtime" "`cat description`"
19 git remote | while read remote ; do
20 printf "%-30s | %16s | %s\n" "" "" "`git remote get-url $remote`"