Skip to content

Instantly share code, notes, and snippets.

@thenaterhood
Created November 11, 2013 14:52
Show Gist options
  • Save thenaterhood/7414298 to your computer and use it in GitHub Desktop.
Save thenaterhood/7414298 to your computer and use it in GitHub Desktop.
A bash one-liner that displays the percentage of commits for things related to semicolons, typos, spelling, forgotten things, and debug statements in a git repo.
echo " $(echo "scale=6; 100*`git log --pretty=oneline --abbrev-commit | grep 'typo\|semicolon\|spelling\|forgotten\|debug' | wc -l`/`git log --pretty=oneline --abbrev-commit | wc -l`" | bc ) %"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment