1

一年前,我作为一个完整的 RoR 新手加入了一个非常有经验的开发团队,现在我们正试图猜测我在前六个月编写的代码有多少幸存下来。

我想我可以在整个 repo 上使用 git blame ,然后 grep 为我的用户名,但我碰壁了。

4

1 回答 1

1

有很多 git 统计工具,也许看看它们是否能完成您需要的工作?点击这里这里

编辑:

我去发现其中一个工具,发现它非常适合你。gitinspector,下面是它的文本输出格式:

$ ./gitinspector.py -wTHl /path/to/some/git/repository
The following historical commit information, by author, was found in the repository:

Author               Commits   Insertions   Deletions   % of changes
John Smith               288         7721        4617          39.19
James Johnson            135         8910        2422          35.99
Robert Brown              71         2564        1352          12.44
Michael Davids           134         2943         954          12.38

Below are the number of rows from each author that have survived and are still intact in the current revision:

Author                     Rows   % in comments
John Smith                 3533           22.02
James Johnson              6113           52.15
Robert Brown               1123           21.19
Michael Davids             1464           20.15

The following history timeline has been gathered from the repository:

Author                  2012W37    2012W38    2012W39    2012W40    2012W41    2012W42    2012W43
John Smith             --++++++      --+++   --++++++       -+++   ---+++++  ----+++++          .
James Johnson                 +   -+++++++       ++++  -++++++++       --++     --++++   -+++++++
Robert Brown                         --+++          +          .       -+++          +          .
Michael Davids                         +++         ++          +          +          +          .
Modified Rows:             1522       3832       7553       6143       5833       5123       1477            

The extensions below were found in the repository history (extensions used during statistical analysis are marked):
xml [java] pdf txt css
于 2013-08-13T02:21:35.113 回答