V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hellodigua

V 友们,请问有没有统计代码提交时间占比的工具,想统计加班时间

  •  
  •   hellodigua · Oct 8, 2021 · 3152 views
    This topic created in 1673 days ago, the information mentioned may be changed or developed.

    事情是这样的,我入职了一家新公司,入职前 Leader 跟我吹他们公司是成都少有的不怎么加班的公司,但是报道的第一天大家就都 19 点下班了,Leader 表示是因为最近有个大版本比较急,但我仍对他的说法保持怀疑态度。

    所以我想看看他们在过去的开发经历中加班情况到底怎么样。

    现在的思路是这样,统计我负责的项目的 commit 在一天 24 小时中每个小时的提交占比,想看看 18 点以后的提交多不多。

    然而网上没有搜到类似的工具或命令,请问下 V 友们有做过类似的需求吗?

    Supplement 1  ·  Oct 8, 2021
    谢谢大佬们,已经搞定了,附上命令

    git log --date=format:%H --after='2021-01-01 00:00:00' --until='2021-10-01 00:00:00' |grep "Date:"|awk '{print $2}'|sort |uniq -c
    8 replies    2021-10-08 15:58:41 +08:00
    Mileszhou
        1
    Mileszhou  
       Oct 8, 2021
    wakatime
    sue0917
        2
    sue0917  
       Oct 8, 2021
    统计出来,楼主的行动是
    Maco
        3
    Maco  
       Oct 8, 2021
    印象中这个项目支持,没细看,楼主细看下: https://github.com/casperdcl/git-fame
    linux40
        5
    linux40  
       Oct 8, 2021   ❤️ 1
    本地的仓库写个 Shell 脚本就行了。
    hellodigua
        6
    hellodigua  
    OP
       Oct 8, 2021
    谢谢大佬们,已经搞定了
    hellodigua
        7
    hellodigua  
    OP
       Oct 8, 2021
    加班不怎么多,海星
    ![image.png]( https://i.loli.net/2021/10/08/Ysq2pcFZMaoNS9R.png)
    ashita
        8
    ashita  
       Oct 8, 2021
    看了几个项目感觉下午三点是提交高峰
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3985 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:22 · PVG 18:22 · LAX 03:22 · JFK 06:22
    ♥ Do have faith in what you're doing.