zoukankan      html  css  js  c++  java
  • 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 ", add, subs, loc }' -


    git log --format='%aN' | sort -u | while read name; do echo -en "$name "; 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 ", 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 "; 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 ", 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 ", add, subs, loc }' -

    git log --format='%aN' | sort -u | while read name; do echo -en "$name "; 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 ", add, subs, loc }' -; done > a.cvs

  • 相关阅读:
    MVC的12种ActionResult介绍以及应用示例【转】
    SQL Server抛出异常信息 RAISERROR
    lambda select和where区别
    JS中的原型对象与构造器
    JS原型的动态性
    关于困惑已久的var self=this的解释
    JS原型对象的问题
    再谈.NET委托(delegate、Func<>)
    在函数作用域嵌套下使用this
    Python 易错点
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/13711664.html
Copyright © 2011-2022 走看看