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

  • 相关阅读:
    IOS开发通过代码方式使用AutoLayout (NSLayoutConstraint + Masonry) 转载
    iOS8.0 使用Photos.framework对相册的常用操作
    iOS 通用button 上图下字
    navigationItem的设置和titleView的设置
    iOS 设置导航栏 返回按钮文字隐藏
    iOS uitableivewCell 下划线顶格
    gitlab创建项目代码:
    iOS block用作属性封装代码
    iOS实录:GCD使用小结(一)
    代码处理 iOS 的横竖屏旋转
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/13711664.html
Copyright © 2011-2022 走看看