Is it possible to list all users that contributed to a project (users that have done commits) in Git?
Any additional statistics?
(users that have done commits)
Note: by default git shortlog groups commits by authors.
If you need to group them by committers, you will need Git 2.12 (Q1 2017)
git shortlog -snc
See commit 03f4082 (16 Dec 2016) by Jeff King (peff).
See commit fbfda15 (11 Oct 2016) by Linus Torvalds (torvalds).
(Merged by Junio C Hamano -- gitster -- in commit ad1b4e2, 27 Dec 2016)
Linus Torvalds himself introduces this feature:
shortlog
: group by committer informationIn some situations you may want to group the commits not by author, but by committer instead.
For example, when I just wanted to look up what I'm still missing from
linux-next
in the current merge window, I don't care so much about who wrote a patch, as whatgit tree
it came from, which generally boils down to "who committed it".So make git shortlog take a "
-c
" or "--committer
" option to switch grouping to that.