2
votes

Is there a way to get the commit history of all the contributors of a git repo with lines added,deleted.

Currently the statistics api provides the stats of top 100 contributors, but not everyone. https://developer.github.com/v3/repos/statistics/ (https://api.github.com/repos/saltstack/salt/stats/contributors

1

1 Answers

1
votes

You won't get more than 100 through the GitHub API alone: see "How can I get more than 100 results from GitHub API v3 using “github_api” gem?".
The results are capped at 100.

You would need top clone the repo, and then show the number of changed lines per author in git.
or use a tool like gitinspector:

http://wiki.gitinspector.googlecode.com/git/images/html_example.jpg