Skip to content

Instantly share code, notes, and snippets.

@floehopper
Created February 1, 2011 11:05
Show Gist options
  • Save floehopper/805716 to your computer and use it in GitHub Desktop.
Save floehopper/805716 to your computer and use it in GitHub Desktop.
Hacked together script to measure the closure of code (may well not be robust)
git log --pretty=format: --numstat | sed '/files changed/d' | sed '/^$/d' | cut -f3 | sort | uniq -c | sort
@floehopper
Copy link
Author

Based on [Measuring the Closure of Code](based on http://michaelfeathers.typepad.com/michael_feathers_blog/2011/01/measuring-the-closure-of-code.html) by Michael Feathers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment