Git 统计某作者代码量

 

  REFER:SO

 

git log --author="_Your_Name_Here_" --pretty=tformat: --numstat \
| gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' -
posted @ 2013-04-14 19:41  strorehouse  阅读(5254)  评论(0编辑  收藏  举报