git commit statistics

git log --author="Marek Romanowski" --since="2019-01-01" --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l

 

git log --since="2019-01-01" --until='2019-02-01' --author="Marek Romanowski" --pretty=tformat: --numstat --no-merges | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -

 


git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since ==2019-01-01 --until==2019-02-01 --author="$name" --no-merges --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 }' -; done > a.cvs


git log --since=30.day.ago --no-merges --pretty='%aN' | sort | uniq -c | sort -k1 -n -r

git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since ==90.day.ago --author="$name" --no-merges --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 }' -; done > a.cvs

git log --since=30.day.ago --author="lt32806" --pretty=tformat: --numstat --no-merges | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -

git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since =30.day.ago --author="$name" --no-merges --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 }' -; done > a.cvs

posted @ 2020-09-22 13:44  tonggc1668  阅读(143)  评论(0编辑  收藏  举报