Skip to content

Instantly share code, notes, and snippets.

@piffy
Last active May 17, 2021 18:47
Show Gist options
  • Save piffy/1935ab757eff6d18d12ea428361e671d to your computer and use it in GitHub Desktop.
Save piffy/1935ab757eff6d18d12ea428361e671d to your computer and use it in GitHub Desktop.
#!/bin/bash
gitinspector --grading -L --format html > ../docs/statistics.html
gitinspector --format=html -f="coffee,rb,js,json,feature,haml,erb,html" -r > report.html
gitinspector --grading -L --format html > doc/statisticsS2.html
gitinspector --grading -L --format html -f="docx,txt,odt,json,haml,doc,html" > doc/statisticsS2doc.html
git shortlog -sne > doc/gitshortlog.txt
git shortlog -sne
git log --pretty=format:%ae \
> | gawk -- '{ ++c[$0]; } END { for(cc in c) printf "%5d %s\n",c[cc],cc; }'
CONTROLLARE I CO-AUTHOR
git log --format="%h %s %(trailers:key=Co-authored-by)" | grep user | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment