That’s not bad! I often have a bunch of dependency TODO comments show up with a search like that, so I’ve started using
git grep instead, which only searches working tree files.
I keep all my repos in a common directory, so I use a simple script to collect all the TODOs:
#!/bin/sh # # A command to count TODOs in all repos (sub-folders) # in the given folder. # # USAGE # $ ./todo_these_repos # for directory in $(ls -1 -d */); do echo "\n== counting TODOs: $directory ==\n"; cd $directory; git grep --color 'TODO:' cd - > /dev/null 2>&1; done