From: Sitaram Chamarty Date: Sat, 14 Feb 2009 00:40:58 GMT Subject: Re: git log --graph and root commits Message-ID: In-Reply-To: On 2009-02-13, Jakub Narebski wrote: > Sitaram Chamarty writes: >> On 2009-02-13, Johannes Schindelin wrote: >>> git log --graph --pretty=format:'%h %s%n' >> It doubles the height requirement, but you gave me an idea: >> >> git log --graph --pretty=tformat:'%h <%p> %s' --all | >> perl -pe '$_.="----\n" if /<>/; s/<.*?> //' >> >> Thanks for pointing me in the right direction. > > Gaaah... I tried running it on git.git :-)))) :-) Seriously, I find 'log --graph' is useful on projects where not everyone is an expert and things might go a little haywire here and there. People merge the wrong thing with the wrong other thing, maybe, and you want to see how precisely they got there. A project managed by git.gods can become a lot more complex and not have to actually care about this visualisation. Of course, gitk is really good and manages a lot more complexity, obviously, but I like 'log --graph' also. And I've sort of fallen in love with --simplify-by-decoration too. Very cool stuff. The things you can do on an xterm...!