git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Sitaram Chamarty <sitaramc@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git log --graph and root commits
Date: Fri, 13 Feb 2009 08:39:08 -0800 (PST)	[thread overview]
Message-ID: <m3wsbuthp1.fsf@localhost.localdomain> (raw)
In-Reply-To: <slrngpb2gl.rhg.sitaramc@sitaramc.homelinux.net>

Sitaram Chamarty <sitaramc@gmail.com> writes:
> On 2009-02-13, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>> On Fri, 13 Feb 2009, Sitaram Chamarty wrote:
> 
>>> I was wondering if there was any way, when using 'git log
>>> --graph --pretty=oneline' to get a different marker (perhaps
>>> an underscore) for a root commit.
>>
>> You might be interested in this instead:
>>
>> 	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 :-))))

-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2009-02-13 16:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13  4:16 git log --graph and root commits Sitaram Chamarty
2009-02-13 11:41 ` Johannes Schindelin
2009-02-13 14:56   ` Sitaram Chamarty
2009-02-13 16:39     ` Jakub Narebski [this message]
2009-02-14  0:40       ` Sitaram Chamarty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3wsbuthp1.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=sitaramc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).