ascii到svg git日志图形可视化工具。

gitink的Python项目详细描述


https://travis-ci.org/bast/gitink.svg?branch=masterhttps://img.shields.io/badge/license-%20MPL--v2.0-blue.svg

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):

Git log graph example

可用选项

$ 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分支上找到旧版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如果在使用JDBC时不包含db驱动程序会发生什么?   发生错误时使用JAXWS跟踪XML请求/响应   java servlet版本getServletContext()。getEffectiveMajorVersion()在我使用3时给了我2.5   jakarta mail在Java中使用Javamail获取消息contenttype时出错   java正在获取WebSphere app Server的实例名称   java在javafx中向TreeItem添加了一个addEventHandler   java我们可以在运行时从泛型类型实例化一个对象吗?   带倒计时的java循环[自动重新启动]   java将画布转换为位图   java在tomcat7上运行shell脚本   使用列表更新java hibernate实体   java如何替换� 字符串中带有“,”的字符?   使用SwingGUI的java简单ClientServer程序   java使用smtp在javamail中以附件形式发送超链接   selenium中的java用户登录身份验证?