Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

graph

gitlab

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. This, however, proves a bit pointless because even a oneliner can stand for one commit and doesn´t satisfy my information need.

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.

like image 403
mogi Avatar asked Jan 12 '15 14:01

mogi


Video Answer


2 Answers

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.

See: 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 }'
like image 144
Théo Winterhalter Avatar answered Nov 09 '22 12:11

Théo Winterhalter


This feature has been removed starting from v7.4.0 of GitLab, due to bad performance.

You can see the feature removal in this commit.

like image 30
Cleankod Avatar answered Nov 09 '22 10:11

Cleankod