• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

takaaki-kasai/git-foresta: git-foresta: Text-based git log graph viewer

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

takaaki-kasai/git-foresta

开源软件地址:

https://github.com/takaaki-kasai/git-foresta

开源编程语言:

Perl 99.6%

开源软件介绍:

git-foresta

git-foresta is a text-based git log graph viewer. It is a modified version of git-forest (written in Perl by Jan Engelhardt).

Samples

Following image is a result of git-foresta --all --style=10 | less -RSX with font Meslo LG.

git-foresta sample 1

Following image is a result of git-foresta --all --style=1 --graph-symbol-commit=★ --graph-symbol-tip=☆ --graph-margin-right=2 | less -RSX with font Ricty Diminished.

git-foresta sample 2

Terminal emulator of sample screenshots: iTerm2 with Solarized Dark color scheme.

Usage

The command git-foresta can take same options and arguments as git log (except --pretty or --format). It can take additional options below.

  • --help: Show help and exit.
  • --svdepth=<Subvine depth>: Maximum length of merge subvines (default: 2).
  • --no-status: Do not show the working tree status near HEAD (show by defalt).
  • --style=<Style>: Select <Style> from following.
    • 1: Use single-line visuals (default).
    • 2: Use double-line visuals.
    • 10: Use specific rounded Unicode visuals for edges.
    • 15: Use single bold-line visuals.
  • --graph-margin-left=<Margin>: Left margin of the commit graph (default: 2).
  • --graph-margin-right=<Margin>: Right margin of the commit graph (default: 1).
  • --graph-symbol-commit=<Symbol>: Graph symbol of commit (default: ).
  • --graph-symbol-merge=<Symbol>: Graph symbol of merge (default: ).
  • --graph-symbol-overpass=<Symbol>: Graph symbol of overpass (default: ).
  • --graph-symbol-root=<Symbol>: Graph symbol of root (default: ).
  • --graph-symbol-tip=<Symbol>: Graph symbol of tip (default: ).
  • --version : Print the version number and exit.

All other options and arguments (except --pretty or --format) are passed down to git-log. (e.g. --all)

Since git-foresta has no pager of is own, it is recommended to use some paging program via pipe with appropriate option (e.g. git-foresta | less -RSX).

Install

Copy the git-foresta file (at the root of this repository) to one of the place in your PATH, and give execute permission to it.

For example, if you have ~/bin in your PATH, you can install git-foresta by following one-liner:

curl -L https://github.com/takaaki-kasai/git-foresta/raw/master/git-foresta -o ~/bin/git-foresta && chmod +x ~/bin/git-foresta

Tips

  • Without --no-status option, current working tree status is shown near HEAD. Meanings of the symbols are as follows:

    • *: There are unstaged changes.
    • +: There are staged changes.
    • %: There are untracked files.
    • $: There are stashed changes.
  • Example of shell configuration for zsh:

    function gifo() { git-foresta --style=10 "$@" | less -RSX }
    function gifa() { git-foresta --all --style=10 "$@" | less -RSX }
    compdef _git gifo=git-log
    compdef _git gifa=git-log

License

GPL-3.0, see LICENSE.

Copyright (C) 2008 Jan Engelhardt
Copyright (C) 2017 Takaaki Kasai




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Imangazaliev/git-tips: Часто используемые трюки и сов ...发布时间:2022-06-11
下一篇:
Uncommon/Xit: Mac OS X Git GUI发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap