文件特定报告生成器

时间:2015-12-18 04:57:37

标签: git svn jenkins gitlab

任何人都可以指出我正确的方向,我正在寻找一种工具,可以为报告添加新行或修改后的代码行添加到项目中。我们正在与SVN,蚂蚁,maven,gradel,jenkins,sonar,fisheye,坩埚合作。我的老板希望我们每周生成一份报告,显示有多少新的或修改过的代码行被添加到项目中。请帮我解决任何工具或脚本。

1 个答案:

答案 0 :(得分:3)

git diff --numstat可以很容易地为两个日期之间的所有回购做到这一点 另请参阅“git diff --stat explanation

git diff --numstat "@{7 day ago}"

您需要parse its output to get the total,如“Git: Getting total numbers of uncomitted lines in a repo” 更多complete tools are listed here

对于SVN,请参阅“How many lines of code modified during a time period?”或“What svn command would list all the files modified on a branch?”。