What have you done for me lately?
I've been asked for an idea of what Atheros, now known as QCA (Qualcomm Atheros) has done on Linux, the kernel, upstream. I wanted to get stats before and after the Qualcomm acquisition. At first I tried git diff --stat --author, but that doesn't do the job, but Greg pointed me to Chris Mason's python gitstat utility. I had to hack it a bit to work (patch sent):
The shortstat version, before the acquisition:
--- gitstat.orig 2012-03-16 18:01:42.719510143 -0700
+++ gitstat 2012-03-16 18:02:40.089510169 -0700
@@ -8,6 +8,7 @@
#
import sys
import os
+import re
from optparse import OptionParser
VERSION="gitstat 0.18"
@@ -241,7 +242,7 @@
if last:
words = last.split()
if '+' in words[-1] or '-' in words[-1]:
- val = int(words[-2])
+ val = int(re.sub("\D", "", words[-2]))
else:
val = int(words[-1])
But after that I got some stats and I figured I'd share. These are the stats of Atheros' contributions prior to the Qualcomm acquisition. These are the stats since Atheros ever started hacking on the kernel up to v3.3-rc7. To generate these I did respectively:
gitstat -d -e atheros.com v2.6.26-rc3~65^2~14^2~19..v3.1-rc1~24^2~10^2^2~398
gitstat -d -e atheros.com -e qca.qualcomm.com v2.6.26-rc3~65^2~14^2~19..HEAD
v2.6.26-rc3~65^2~14^2~19 happens to be Atheros' first contribution to the Linux kernel, and v3.1-rc1~24^2~10^2^2~398 our last one, after that our contributions went out under QCA.The shortstat version, before the acquisition:
531 files changed, 317748 insertions(+), 140965 deletions(-)
After the acquisition:
593 files changed, 362457 insertions(+), 293184 deletions(-)
We keep chugging along. Most impressive to me of all these stats were Kalle Valo's stats, which show he has deleted a lot more code from the kernel than actually add:Kalle Valo (120) commits (+23070/-102518)
Comments