GIT - who pushed / wrote the most code

Is there a git command to check which developer clicked the code for the whole story?

+7
source share
5 answers

I found something

git ls-files | xargs -n1 -d'\n' -i git-blame {} | perl -n -e '/\s\((.*?)\s[0-9]{4}/ && print "$1\n"' | sort -f | uniq -c -w3 | sort -r User: askedrelic Functions: perl sort uniq xargs 

Print for each line for the author for the GIT repository

Displays the total amount of input per author for the entire GIT repository. Includes binary files that have corrupted the true score.

If it crashes or takes too long, get confused with the ls-file option at the beginning:

git ls-files -x "*pdf" -x "*psd" -x "*tif" to remove really random binary files

git ls-files "*.py" "*.html" "*.css" to only include specific file types

Based on my original version of SVN: http://www.commandlinefu.com/commands/view/2787/prints-total-line-count-contribution-per-user-for-an-svn-repository

http://www.commandlinefu.com/commands/view/3889/prints-per-line-contribution-per-author-for-a-git-repository

+7
source

LWN publishes Who wrote 2.6.x for the Linux kernel using the gitdm tool

I had some success using it for other projects, especially useful if you want to compare the contributions of different development groups based on the employer.

+3
source

Github provides influence charts. For example, here is a chart for comex / frash .

+2
source

If you are using Windows and using TortoiseGit, you can select Show log for repo. In the dialog that appears, select Statistics : tortoisegit_screenshot

Now you can choose from the drop-down list in the upper right corner: Statistics , Block by authors and Lock by date :

enter image description here

+1
source

As I mentioned in Determine the current distribution of code by the author , you can easily create these statistics using gitdm .

+1
source

All Articles