有没有办法使用git来获取特定开发者在特定日期/周内提交的行数?
我知道您可以计算作者提交的总行数:How to count total lines changed by a specific author in a Git repository?,但按日或周分段会很有用。
更新
我能找到的最佳解决方案是将这里的答案结合起来:How to count total lines changed by a specific author in a Git repository?和下面提到的--since和--before过滤器:
git log --author="<author>" --since=“<date>” --before=“<date>” --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -