Skip to content

Instantly share code, notes, and snippets.

@agrif
Created August 18, 2011 18:53
Show Gist options
  • Save agrif/1154832 to your computer and use it in GitHub Desktop.
Save agrif/1154832 to your computer and use it in GitHub Desktop.
change summary for Minecraft-Overviewer (with deletes/renames)
agrif@nara ~/devel/mc-overviewer $ git log --shortstat --format=format:"%an" | sed -n '1h;1!H;g;/files changed/{s/.*\n\(.*\)\n \([0-9]\+\) files changed, \([0-9]\+\) insertions(+), \([0-9]\+\) deletions(-)/\1|\2|\3|\4/g;p;s/.*//;h}' | awk 'BEGIN{FS="|"};{FILES[$1]+=$2; INSERTIONS[$1]+=$3; DELETIONS[$1]+=$4};END{for(name in FILES){print INSERTIONS[name]-DELETIONS[name],FILES[name],INSERTIONS[name],DELETIONS[name],name}}' | sort -nr
# inserted - deleted, files, inserted, deleted, name
3388 219 4606 1218 Andrew Chin
2979 587 19630 16651 Aaron Griffith
2152 151 4416 2264 Andrew Brown
1950 142 3388 1438 Alejandro Aguilera
710 6 810 100 Andrew
525 70 2260 1735 Xon
416 71 918 502 Ryan Rector
218 19 1149 931 aheadley
147 18 391 244 Michael Writhe
108 2 108 0 Andrew Clunis
90 17 281 191 Alex Headley
84 1 89 5 Ryan Finnie
72 7 97 25 Jenny
62 2 65 3 Ryan Hitchman
52 4 60 8 Kyle Brantley
50 6 93 43 Jeffrey Warren
49 13 112 63 Thomas Lake
39 2 46 7 arrai
33 22 120 87 Ryan McCue
31 6 148 117 CounterPillow
19 6 34 15 Sam Steele
12 2 12 0 timwolla
11 2 12 1 Eric Carr
6 1 11 5 Benjamin Herr
4 4 14 10 but2002
4 1 5 1 Maciej Małecki
4 1 4 0 cbarber
4 1 4 0 Morlok8k
1 2 14 13 Alex Cline
0 2 2 2 Michael Jensen
0 2 10 10 TJ09
0 1 2 2 untergrundbiber
0 1 2 2 Stephen Fluin
-40 18 111 151 Alex Jurkiewicz
-86 16 227 313 Gregory Short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment