git-forest (1) - Linux Man Pages
- git-forest --- display the commit history forest
Syntaxgit-forest [-a] [--no-rebase] [--style=number] [--sha] [--svdepth=depth] [rev-list-options] [refspec...]
Why another program?The tree visualization of gitk is very useful, but there were (git 1.5.4 timeframe) no decent visualizers that can run in a console window, without the need to have X around (which gitk depends on). tig has numerous limitations, it cannot display octopus merges or octopus branching. As of git 1.5.6, there are still no other Unicode-output programs known to me.
A bit of internalsgit-forest originally was a zero-lookahead visualizer, i.e. branches were accomodated when they have first been seen. Since mid-June 2008, git-forest has a lookahead tunable that controls how long an inter-merge vine (a branch in the graphical sense) can be.
- Display author for each commit.
- Do not show the rebase pseudo-refs.
- Use single-line visuals (default).
- Use double-line visuals.
- Use specific rounded Unicode visuals for edges; glyphs might only be available with X11 terminals and appropriate fonts.
- Use single bold-line visuals. Not readily usable with VGA console fonts without special unimaps.
- Display (abbreviated) SHAs for each commit.
- This option controls the maximum length of merge subvines. It defaults to 2.
git-forest --all | less -RS git-forest origin/master | less -RS