Created
December 3, 2014 15:54
-
-
Save cslarsen/a581cdcfa277b9c4c372 to your computer and use it in GitHub Desktop.
Prints TODO and FIXME in code, along with who's probably responsible from git blame. Requires parallel to work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Show all TODO and FIXME from current directory along with who's | |
# responsible. | |
# | |
# Requires parallel to work (unless you want to make everything slow) | |
( find . \( -name '*.cpp' -o \ | |
-name '*.py' -o \ | |
-name '*.h' -o \ | |
-name '*.hpp' \) -print0 ) \ | |
| parallel -0 git blame \ | |
| egrep 'TODO|FIXME' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course, you should add other type of files to search for. Here, C++ and Python files.
In fact, it would be nice to add parameters to the script.