Gitstats commit_begin不起作用 [英] Gitstats commit_begin does not work

查看:86
本文介绍了Gitstats commit_begin不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows上使用gitstats,试图获取当月的统计信息 但是gitstats仍会返回直到创建项目为止的统计信息 我正在执行以下命令:

I am using gitstats on windows I am trying to get stats for the current month however gitstats still returns stats from untill the time the project was created I am executing this command:

git log --since "1 month ago"

这使我的提交每月有一个月的时间,直到日期,我复制了第一个commit_id然后执行

This gives me a month old commits until date, I copy the first commit_id and then executing

python gitstats.py -c commit_begin="commit_id_got_from_above" path_to_git_repo path_to_target

我的问题与此类似,但我也尝试过 如何在git中获得今天提交的总行数?

My issue looks similar to this but I have tried that too How can I get the total lines committed today in git?

推荐答案

为使其正常工作,我确实从

To make it work I did modify the line 75 of gitstats, from

def getlogrange(defaultrange = 'HEAD', end_only = True):

def getlogrange(defaultrange = 'HEAD', end_only = False):

这篇关于Gitstats commit_begin不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆