Re: git log --graph and root commits
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Feb 14, 2009, 00:40 UTC
- Message-ID
- <slrngpc4op.jdo.sitaramc@sitaramc.homelinux.net>
- In-Reply-To
- <m3wsbuthp1.fsf@localhost.localdomain>
On 2009-02-13, Jakub Narebski <jnareb@gmail.com> wrote:
> Sitaram Chamarty <sitaramc@gmail.com> writes: >> On 2009-02-13, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>>> git log --graph --pretty=format:'%h %s%n'
Show 8 quoted lines
>> 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...!