Re: [BUG] --pretty=format does not work ok with rev-list
- From
- Jörg Sommer <joerg@alea.gnuu.de>
- Date
- Apr 25, 2008, 09:14 UTC
- Message-ID
- <slrng1386p.ujv.joerg@alea.gnuu.de>
- In-Reply-To
- <1208032825.30817.15.camel@k0001>
Hi,
k0001 <gnuk0001@gmail.com> wrote:
Show 11 quoted lines
> Now back to business, when using --pretty=format:some_format with git
> rev-list, an additional non-requested line is printed before every
> commit ("commit <sha1_id>"). Example:
>
> git rev-list output (BAD):
>
> k@k0001 ~/linux-2.6 $ git rev-list -2 --pretty=format:"%H: %cn" master
> commit f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed
> f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed: Linus Torvalds
> commit 44cad261025c04327fd7e847a7088fd3031b0c3e
> 44cad261025c04327fd7e847a7088fd3031b0c3e: Linus TorvaldsIs this a bug? I've the same “problem” in my rebase with merge patch series and added a “|grep -v ^commit”. But if this is a bug, I can remove it.
Schöne Grüße, Jörg.
-- Viele Leute glauben, dass sie denken, wenn sie lediglich ihre Vorurteile neu ordnen.