[download]

local/bin/repos

   1 #!/bin/bash
   2 
   3 for i in "${@:-.}"; do
   4     pushd "$i" > /dev/null || continue
   5     while read j; do
   6         j=$PWD/${j%/.git}
   7         pushd "$j" > /dev/null
   8 
   9         cs=$(git log -1 --format=%cs)
  10         st=$(git st  2>&- | wc -l)
  11         up=$(git out 2>&- | wc -l)
  12         br=$(git symbolic-ref --short HEAD)
  13 
  14         printf '%s\t%s\t*%s\t+%s\t%s\t%s\n' "$cs" "$br" "$up" "$st" "${j/~/\~}"
  15         popd > /dev/null
  16     done < <(find * -name \*.git 2>&-)
  17     popd > /dev/null
  18 done