takaaki-kasai / git-foresta

git-foresta: Text-based git log graph viewer
GNU General Public License v3.0
222 stars 11 forks source link
git

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.

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

License

GPL-3.0, see LICENSE.

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