git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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...!
Previous: Jakub Narebski
Message 5 of 5 in “git log --graph and root commits”
  1. Sitaram ChamartyFeb 13, 2009
  2. Johannes SchindelinFeb 13, 2009
  3. Sitaram ChamartyFeb 13, 2009
  4. Jakub NarebskiFeb 13, 2009
  5. Sitaram ChamartyFeb 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.