Skip to content

Instantly share code, notes, and snippets.

@jpcaruana
Created December 12, 2014 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcaruana/88fed56a1695fde68acc to your computer and use it in GitHub Desktop.
Save jpcaruana/88fed56a1695fde68acc to your computer and use it in GitHub Desktop.
sloc over the tags
for tag in `git tag`
do
git co $tag
loc=`sloccount --duplicates --autogen --crossdups --wide --addlangall . | grep "Total Physical Source Lines of Code" | cut -d "=" -f2`
echo "$tag;$loc" >> tags.csv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment