git log --author=liuyufeng --since=2020-03-07 --until=2020-03-13 --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --n umstat | grep "\(|.c++\|.h\|.pro\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; don e |
git 统计一段时间内的代码行数,包括文件格式过滤
最新推荐文章于 2024-03-12 23:21:20 发布