Created
February 19, 2015 09:14
-
-
Save tjmcewan/d5e0e425b189fb080bc5 to your computer and use it in GitHub Desktop.
find the 10 longest git commit **messages** (not changesets) in a repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=oneline --abbrev-commit | awk '{print length() "\t" $1 }' | sort -rn | head -n 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this chunk of code!
This didn't work for me because of the
--pretty=oneline
that will ignore multi-line commit messages.