How to count git commits per user in a date range?

Git

Git Problem Overview


The command git shortlog -sne is exactly what I need, but I want to be able to specify a date range for that which isn't an option for shortlog. Is there another way to accomplish this same thing, but for a specific date range?

Git Solutions


Solution 1 - Git

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWestwickView Question on Stackoverflow
Solution 1 - GitMureinikView Answer on Stackoverflow