Created
October 27, 2014 10:48
-
-
Save nulpunkt/92bc464d86a54622e223 to your computer and use it in GitHub Desktop.
Find the oldest TODO in the codebase
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
git grep -n -w "FIXME\|TODO\|XXX" | awk '{ print $1 }' | while read fileline; do | |
filename=`echo $fileline | cut -d: -f1` | |
lineno=`echo $fileline | cut -d: -f2` | |
time=`git blame -p -t $filename -L$lineno,$lineno | grep author-time | cut -d' ' -f2` | |
msg=`git blame $filename -L$lineno,$lineno` | |
echo "$time $fileline $msg" | |
done | sort | cut -d' ' -f1- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Beautiful!
Tweaked to output dates as human-readable.