金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks
Windows运行GitStats

(金庆的专栏)

GitStats - git history statistics generator
http://gitstats.sourceforge.net/

GitStats是git统计工具。
只是一个python脚本,使用 gnuplot 画图。
Windows下运行需要安装 python, git, gnuplot.
需要设置path, 使这些工具可以在命令行中使用。
还需要用到 wc 工具,我的 “Git for Windows” 正好有个 sh.exe, 其中带了 wc,
所以打开 git 的 sh.exe, 进入 GitStats 目录,按说明运行脚本:

jinqing@ZT-2203857 MINGW64 /e/git/gitstats (master)
$ python gitstats /e/server_master /e/temp/server_master

会出现 import gitstats 错误,需要先把 gitstats 复制成 gitstats.py.

结果为 index.html。

因为无法过滤文件,所以统计中都是些其他文件,
例如无法将Lua文件排除,无法排除依赖库。

提供的参数有如下:
jinqing@ZT-2203857 MINGW64 /e/git/gitstats (master)
$ python gitstats

Usage: gitstats [options] <gitpath..> <outputpath>

Options:
-c key=value     Override configuration value

Default config values:
{'project_name': '', 'processes': 8, 'max_domains': 10, 'commit_begin': '', 'max
_ext_length': 10, 'commit_end': 'HEAD', 'linear_linestats': 1, 'style': 'gitstat
s.css', 'max_authors': 20, 'authors_top': 5, 'start_date': ''}

Please see the manual page for more details.
posted on 2016-05-31 11:51 金庆 阅读(713) 评论(0)  编辑 收藏 引用 所属分类: 5. 软工与管理9. 其它

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理