2021-02-25 08:53:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$1" ]
|
|
|
|
then dir="."
|
|
|
|
else dir=$1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for root in $(find -L $dir -name '.git' -type d | xargs -L 1 dirname )
|
|
|
|
do
|
|
|
|
if [ -d $root/.git/task ]
|
|
|
|
then
|
|
|
|
echo "→ \033[1;4;33m"$root"\033[0m"
|
2021-03-10 09:40:37 +00:00
|
|
|
(cd $root; git task 2>/dev/null | head -n -2 | sed -e '1d;3d' )
|
|
|
|
echo ''
|
2021-02-25 08:53:10 +00:00
|
|
|
fi
|
|
|
|
done
|