git 日志使用:查找给定时间段内最频繁的提交者

git log usage: finding the most frequent committers for a given time period

对于 git 存储库中的给定子目录,我如何找到给定时间段内谁是最频繁的提交者?

截至目前,我使用 git shortlog 如下:

git shortlog -sn -- path/to/subdir

但问题是这是从一开始就提供数据。我正在尝试查找 window 时间段内的数据,例如,过去 1 年。

结合since限时:

git --no-pager shortlog -sn --since="2017-01-12T16:36:00-07:00" -- path/to/dir

正是您所需要的。 since 可以追溯到一年前。如果有大量作者(超过显示高度),则将其通过管道传输到 headless.