Skip to content

Instantly share code, notes, and snippets.

@davydotcom
Created October 19, 2013 00:51
Show Gist options
  • Save davydotcom/7050416 to your computer and use it in GitHub Desktop.
Save davydotcom/7050416 to your computer and use it in GitHub Desktop.
Retained Lines of code in your project
git ls-tree -r HEAD|sed -re 's/^.{53}//'|while read filename; do file "$filename"; done|grep -E ': .*text'|sed -r -e 's/: .*//'|while read filename; do git blame -w "$filename"; done|sed -r -e 's/.*\((.*)[0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/' -e 's/ +$//'|sort|uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment