Skip to content

Instantly share code, notes, and snippets.

@JoseHdez2
Last active November 7, 2022 09:28
Show Gist options
  • Save JoseHdez2/416fda3c8dd9273b36e25f0ffb0d00ce to your computer and use it in GitHub Desktop.
Save JoseHdez2/416fda3c8dd9273b36e25f0ffb0d00ce to your computer and use it in GitHub Desktop.
Get all TODO lines of a repo as a CSV file
git grep -l TODO | xargs -n1 git blame -fe --date=short | grep TODO | sed -E 's#\(#,\(#; s#<([a-z]+@[a-z]+\.com)>#,\1,#; s#([0-9]{4}-[0-9]{2}-[0-9]{2})#\1,#; s@(\/\/|#|\/\*)(.*TODO.*)@,"\1\2"@; s#[0-9a-f]{10}##' > todos_$(date +%s).csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment