文件特定报告生成器

File Specific Report generator

谁能给我指出正确的方向,我正在寻找一种工具,它可以提供一个报告,其中包含添加到项目中的新行或修改后的代码行。我们正在使用 SVN、ant、maven、gradel、jenkins、sonar、fisheye、crucible。我的老板希望我们每周生成一份报告,显示有多少新的或修改的代码行被添加到项目中。请用任何工具或脚本帮助我。

A git diff --numstat 可以轻松地为两个日期之间的所有回购做到这一点。
另见“git diff --stat explanation

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

您需要 parse its output to get the total, as in ""。
更多 complete tools are listed here.

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