代码行数统计

 

git log --author="作者名称" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s。 ", add, subs, loc }' ;

 

git log --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 }'

 

posted @ 2024-07-08 15:08  selicoco  阅读(2)  评论(0编辑  收藏  举报