我需要计算特定时间段之间源中的线路变化。
这意味着,通过使用提交 ID,我可以知道源中的行更改计数吗?
我不希望每个用户都改变线路。我需要提交之间的所有行更改计数
我的gitlab社区版版本是8.14.3
更新
我的所有资源都存在于 mycompany.gitlab.com 中。我怎样才能实现我的上述怀疑?
在您的 git 工作目录中,运行:
git diff <commit-1> <commit-2> --shortstat
Run Code Online (Sandbox Code Playgroud)
您应该得到如下输出:
7 files changed, 39 insertions(+), 107 deletions(-)
Run Code Online (Sandbox Code Playgroud)