Skip to content

Instantly share code, notes, and snippets.

@Niklas9
Created December 8, 2018 12:04
Show Gist options
  • Save Niklas9/07edf216e42e067be3a52dd94a1283b4 to your computer and use it in GitHub Desktop.
Save Niklas9/07edf216e42e067be3a52dd94a1283b4 to your computer and use it in GitHub Desktop.
git log --since=4.weeks --numstat --pretty="%ae %H" | sed 's/@.*//g' | awk '{ if (NF == 1){ name = $1}; if(NF == 3) {plus[name] += $1; minus[name] += $2}} END { for (name in plus) {print name": +"plus[name]" -"minus[name]}}' | sort -k2 -gr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment