Created
April 4, 2015 18:26
-
-
Save jcelerier/0f170a9446f3a9419848 to your computer and use it in GitHub Desktop.
Sort TODO's by chronological order in git
This file contains 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 TODO | while IFS=: read -r file line junk; do git --no-pager blame --line-porcelain -L "$line,$line" -- "$file" | grep -v 'previous' | awk 'NR==4 || NR==12' | sed 'N;s/\n/ /' ; done | sort -k 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment