• git代码产出、工作量统计,两行命令就够了


    查看所有代码

    git log --author="oak" --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 --stat --since=2020-06-01 --until=2020-06-05  | perl -ne 'END { print $c } $c += $1 if /(d+) insertions/;'
    

    ps:可以以此作为绩效的重要考核指标

  • 相关阅读:
    audio_policy.conf说明(翻译)
    Qt
    linux C
    Linux C
    Linux C
    Qt
    Qt
    JSON
    JSON
    Qt
  • 原文地址:https://www.cnblogs.com/pzyin/p/13065056.html
Copyright © 2020-2023  润新知