Skip to content

Instantly share code, notes, and snippets.

@fgm
Created October 30, 2015 13:03
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fgm/5cecbaee477b54306dc6 to your computer and use it in GitHub Desktop.
Save fgm/5cecbaee477b54306dc6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Build a commit frequency list.
ROW_LIMIT=20
git log --name-status $* | \
grep -E '^[A-Z]\s+' | \
cut -c3-500 | \
sort | \
uniq -c | \
grep -vE '^ {6}1 ' | \
sort -n | \
tail --lines="$ROW_LIMIT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment