git 统计各个用户代码量

2023-08-02  本文已影响0人  乘以零
git log --since=2021-07-01 --until=2021-12-31 --format='%aN' | sort -u | while read name; do echo -en "$name" | awk '{ printf "author:%30s, ", $1 }'; git log --since=2021-07-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat  | grep '.java' | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %10s, removed lines: %10s, total lines: %10s\n", add, subs, loc }' -; done
上一篇 下一篇

猜你喜欢

热点阅读