Determine current code distribution by author

后端 未结 3 1379
南旧
南旧 2021-02-15 20:55

I thought it would be neat if it were possible to take a Git repository, run some script, and have it generate the number of lines in the code base, and the proportion of each a

3条回答
  •  生来不讨喜
    2021-02-15 21:34

    You can use git log, as illustrated in "Which Git commit stats are easy to pull".

    Or you can have a look at Git Lookatgit project, which does inspect the number of lines changed, as seen in its gitauthor.rb class.

提交回复
热议问题