【发布时间】:2016-03-24 18:13:52
【问题描述】:
谁能指出我正确的方向,我正在寻找一种工具,它可以提供报告,其中包含添加到项目中的新行或修改的代码行。我们正在与 SVN、ant、maven、gradel、jenkins、声纳、鱼眼、坩埚合作。我的老板希望我们每周生成一份报告,显示项目中添加了多少新的或修改的代码行。请帮助我使用任何工具或脚本。
【问题讨论】:
谁能指出我正确的方向,我正在寻找一种工具,它可以提供报告,其中包含添加到项目中的新行或修改的代码行。我们正在与 SVN、ant、maven、gradel、jenkins、声纳、鱼眼、坩埚合作。我的老板希望我们每周生成一份报告,显示项目中添加了多少新的或修改的代码行。请帮助我使用任何工具或脚本。
【问题讨论】:
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?”。
【讨论】: