简体   繁体   English

为什么GitLab图只显示提交而不显示添加/删除?

[英]Why does the GitLab Graph only show commits and not Additions/Deletions?

From my previous projects I´m used to being able to check Additions/Deletions committed by every project member but now (new project) I only see the numbers of commits from every group member in the Graph section of GitLab. 从我之前的项目开始,我习惯于检查每个项目成员提交的添加/删除但是现在(新项目)我只看到GitLab的Graph部分中每个组成员的提交数量。 This, however, proves a bit pointless because even a oneliner can stand for one commit and doesn´t satisfy my information need. 然而,这证明有点没有意义,因为即使一个oneliner也可以代表一次提交并且不满足我的信息需求。

Since this is a university project, it is essential to follow the overall contributions of every member to the project. 由于这是一个大学项目,因此必须遵循每个成员对项目的总体贡献。

How can I change it to showing the actual Additions/Deletions numbers ? 如何将其更改为显示实际的添加/删除数字?

Thanks. 谢谢。

Even if you can't rely on Gitlab anymore to show you these stats, it is still possible to get them directly from the command line. 即使您不再依赖Gitlab向您显示这些统计信息,仍然可以直接从命令行获取它们。

See: https://coderwall.com/p/pek-yg/git-statistics-for-repo-per-author 请参阅: https//coderwall.com/p/pek-yg/git-statistics-for-repo-per-author

git log --shortstat --author="Optional" | grep -E "fil(e|es) changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed: ", files, "lines inserted: ", inserted, "lines deleted: ", deleted }'

This feature has been removed starting from v7.4.0 of GitLab, due to bad performance. 由于性能不佳,此功能已从GitLab的v7.4.0开始删除。

You can see the feature removal in this commit. 您可以在此提交中看到功能删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM