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
网友评论