如何生成类似github的冲击图? [英] How to generate a github-like Impact Graph?

查看:180
本文介绍了如何生成类似github的冲击图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有某个程序(或者我错过的一些神奇的git插件)从git仓库中获取冲击图或类似的东西,而无需通过github?就数据收集(我可以生成图表)而言,我不确定自己会从哪里开始编写我自己的程序。我认为有一些标志可以传递给git-log来获取提交和作者,但是我不确定如何获得影响(添加/删除行的总和,或者可能添加/删除了总字节数),甚至可能跳过某些文件从这里考虑。

Is there some program out there (or some magical git plugin I've missed) to get an impact graph or something similar from a git repo without going through github? I'm unsure where I'd begin exactly to write my own, as far as data collection goes (I can generate graphs). I assume there's some flags I could pass to git-log to get commits and authors, but I'm unsure how to get impact (sum of lines added/removed, or maybe total bytes added/removed), and perhaps even skip certain files from consideration.

推荐答案

SO问题提供了一些答案:

This SO question provides some answers:

git log --author="<authorname>" --pretty=tformat: --numstat

对于图本身,我知道这个 jQuery程序 (但我没有测试过它),基于json格式的数据。 插图此消息所报道的

and for the graph itself, I know about this jQuery program (but I haven't tested it), based on json-formatted data. Illustrated here, reported by this message)

这篇关于如何生成类似github的冲击图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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