Re: git log --graph and root commits
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 13, 2009, 11:41 UTC
- Message-ID
- <alpine.DEB.1.00.0902131237490.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <slrngp9t0u.va9.sitaramc@sitaramc.homelinux.net>
Hi,
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.
Is it not enough that the line ends? That is a pretty obvious visual marker for me that this is a root commit. But I see that you are _asking_ for the lines not to be shown, by using --pretty=oneline.
You might be interested in this instead:
git log --graph --pretty=format:'%h %s%n'
Hth, Dscho