Skip to content

Instantly share code, notes, and snippets.

@barrucadu
Created October 25, 2019 13:09
Show Gist options
  • Save barrucadu/1058ee84aac0c86104831026f318a46b to your computer and use it in GitHub Desktop.
Save barrucadu/1058ee84aac0c86104831026f318a46b to your computer and use it in GitHub Desktop.
for hash in $(git log --format='%H' --no-merges [email protected]); do
msg_len=$(git show --format='%B' --no-patch $hash | wc -c)
full_len=$(git show --format='%B' $hash | wc -c)
echo -e "$(echo "($full_len - $msg_len) / $msg_len" | bc -l)\t$(git show --oneline --no-patch $hash)"
done | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment