ETOOBUSY 🚀 minimal blogging for the impatient
Git Forest
TL;DR
git-forest
from hxtools is nice.
I like to look at a Git repository using some kind of
pseudo-graphical representation of the hierarchy. The bottom line
visualizer is usually the following alias in ~/.gitconfig
(I usually
put it all in one line, I don’t know if \\
works!):
lg = log --graph --abbrev-commit --date=relative --date-order \
--format=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %Cred<%an>%Creset'
This produces something like this (I don’t have much hierarchies in my blog…):
But… when there’s Perl and the possibility to install the Git
module, I also like to use the utility git-forest
from hxtools,
setting the alias like this instead:
lg = !"git-forest --reverse --sha --style 10"
This yields the following (the items are in reversed order for my local choice):
This is very nifty in my opinion!
I know there is also a git-foresta project, which is apparently an evolution of the initial project with the nice added benefit of being fatpacked, so batteries included! I’ll probably give it a try…