Windows運行GitStats
(金慶的專欄)
GitStats - git history statistics generator
http://gitstats.sourceforge.net/
GitStats是git統(tǒng)計工具。
只是一個python腳本,使用 gnuplot 畫圖。
Windows下運行需要安裝 python, git, gnuplot.
需要設(shè)置path, 使這些工具可以在命令行中使用。
還需要用到 wc 工具,我的 “Git for Windows” 正好有個 sh.exe, 其中帶了 wc,
所以打開 git 的 sh.exe, 進(jìn)入 GitStats 目錄,按說明運行腳本:
jinqing@ZT-2203857 MINGW64 /e/git/gitstats (master)
$ python gitstats /e/server_master /e/temp/server_master
會出現(xiàn) import gitstats 錯誤,需要先把 gitstats 復(fù)制成 gitstats.py.
結(jié)果為 index.html。
因為無法過濾文件,所以統(tǒng)計中都是些其他文件,
例如無法將Lua文件排除,無法排除依賴庫。
提供的參數(shù)有如下:
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.
(金慶的專欄)
GitStats - git history statistics generator
http://gitstats.sourceforge.net/
GitStats是git統(tǒng)計工具。
只是一個python腳本,使用 gnuplot 畫圖。
Windows下運行需要安裝 python, git, gnuplot.
需要設(shè)置path, 使這些工具可以在命令行中使用。
還需要用到 wc 工具,我的 “Git for Windows” 正好有個 sh.exe, 其中帶了 wc,
所以打開 git 的 sh.exe, 進(jìn)入 GitStats 目錄,按說明運行腳本:
jinqing@ZT-2203857 MINGW64 /e/git/gitstats (master)
$ python gitstats /e/server_master /e/temp/server_master
會出現(xiàn) import gitstats 錯誤,需要先把 gitstats 復(fù)制成 gitstats.py.
結(jié)果為 index.html。
因為無法過濾文件,所以統(tǒng)計中都是些其他文件,
例如無法將Lua文件排除,無法排除依賴庫。
提供的參數(shù)有如下:
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.