ascii到svg git日志图形可视化工具。
gitink的Python项目详细描述
gitink
ascii到svg git日志图形可视化工具。对教git很有用。 在引擎盖下它使用https://github.com/bast/ascii2graph。
示例
$ cat example.txt [feature]| v x1-----x2 / c1----c2----m1----c3----c4 \ / ^ b1----b2----b3 | ^ ^ [master,HEAD]||[_branch][branch] $ gitink --time-direction=90 --in-file=example.txt | display
这将产生(display命令需要 imagemagick):
可用选项
$ gitink --help Usage: gitink [OPTIONS] Options: --scale FLOAT Scale sizes by this factor. --in-file TEXT ASCII file to convert. --time-direction INTEGER Direction of the time arrow (0, 90, 180, or 270). --help Show this message and exit.
安装
$ pip install gitink
或者,您可以用分支或标记替换master。
颜色是怎么工作的?
根据提交哈希的第一个字符进行着色。其他 欢迎提出建议。
我以前用过这段代码,但是api改变了?
您可以在spaghetti分支上找到旧版本。