How to count git commits per user in a date range?
Solution 1:
Although git shortlog --help
doesn't seem to specify it, shortlog
takes the same --since
, --after
, --before
and --until
parameters that git log
does. So, for example:
git shortlog -sne --since="01 Jan 2015" --before="01 Feb 2015"
Note:
This was verified on git 2.1.0 running on Fedora 21 and on git 1.8.3.1 running on RHEL 7.1. I don't have older systems at hand, but I believe these parameters were supported there for a while.