Add git todo script to crawl tasks in repositories

This commit is contained in:
Talia 2021-02-25 09:53:10 +01:00
parent 9b84cec204
commit e56ccdca8e
1 changed files with 15 additions and 0 deletions

15
bin/git-todo Executable file
View File

@ -0,0 +1,15 @@
#!/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 -1 | sed -e '3d' )
fi
done