Re: git log --graph and root commits
Sitaram Chamarty <sitaramc@gmail.com> writes:
Show 17 quoted lines
> 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