16 lines
287 B
Bash
Executable file
16 lines
287 B
Bash
Executable file
#!/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"
|
|
(cd $root; git task 2>/dev/null | head -n -2 | sed -e '1d;3d' )
|
|
echo ''
|
|
fi
|
|
done
|