Re: git log --graph and root commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2009-02-13, Jakub Narebski <jnareb@xxxxxxxxx> wrote:
> Sitaram Chamarty <sitaramc@xxxxxxxxx> writes:
>> On 2009-02-13, Johannes Schindelin <Johannes.Schindelin@xxxxxx> 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...!

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux