Wei Wu / @lazyparser

PLCT Lab. OSDT/HelloGCC/HelloLLVM. RISC-V Ambassador.

Download as .zip Download as .tar.gz View on GitHub

Ehsan Akhgari 在自己的一篇博客[1]中介绍了如何通过 git 的 log 日志统计得到了各个开发人员的提交统计. 并给出了Mozilla SpiderMonkey 引擎开发人员2012年上半年的提交统计, 这是一部分结果:

$ git log –format=’%an <%ae>’
–since=2012-01-01 –until=2012-07-01
–all –no-merges – js/ | sed ‘s/@/–at–/’ |
grep -v ^commit | sort | uniq -c | sort -rn | head 199 David Anderson 155 Jan de Mooij 133 Jeff Walden 115 Luke Wagner 114 Bill McCloskey 108 Nicholas Nethercote 105 Marty Rosenberg 104 Bobby Holley 103 Nicolas Pierron 78 Terrence Cole

Ehsan 在博客中同时提供了生成数据的(一行)命令脚本, 并对各个参数进行了详细的解释. 只要是 git 仓库就可以使用这种脚本进行统计(需要改一下起始时间和结束时间). 如果你有兴趣, 可以看看自己的仓库中谁最努力. :-)

[1]: Data about people’s contribution to the Mozilla code base