【问题标题】:Get timetracking report by logging Git workingcopy branch occupancy通过记录 Git 工作副本分支占用获取时间跟踪报告
【发布时间】:2013-08-27 09:29:57
【问题描述】:

我想知道是否存在一个脚本(python 或其他可在 Windows 上运行的),它每隔 1 分钟检查一次当前在 git 工作副本中签出的分支。

这样就可以估计每张票/分行获得时间跟踪报告所需的时间。

【问题讨论】:

  • 这样的? perl -MPOSIX=strftime -e 'while() { print strftime("%FT%T ",localtime); my($branch) = qx(git status -b --porcelain); print $branch; sleep 60}'
  • 是的,我也想到了一个脚本解决方案,但我想知道是否有一个解决方案可以让我有时间签出每个分支。但我想我会自己开始一个小项目,因为我会在 9 小时后怀疑会有更多的答案。再次感谢。

标签: git time-tracking


【解决方案1】:

我对此的回答是 Python 中的一个实现: https://github.com/schoetbi/gitwatch

【讨论】:

    猜你喜欢
    • 2013-08-18
    • 2010-10-19
    • 2019-06-19
    • 2012-03-05
    • 2010-09-27
    • 1970-01-01
    • 2019-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多