git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: k0001 <gnuk0001@gmail.com>
To: git@vger.kernel.org
Subject: [BUG] --pretty=format does not work ok with rev-list
Date: Sat, 12 Apr 2008 17:40:25 -0300	[thread overview]
Message-ID: <1208032825.30817.15.camel@k0001> (raw)

Hello list, my name is Renzo Carbonara and I'm new here in the git
neighborhood.


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 Torvalds


git log output (GOOD):

k@k0001 ~/linux-2.6 $ git log -2 --pretty=format:"%H: %cn" master
f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed: Linus Torvalds
44cad261025c04327fd7e847a7088fd3031b0c3e: Linus Torvalds



this was tested with versions:
 - 1.5.3.7
 - 4cdda2b895dfb6ba084e3952cbf4274a6a2e0338


Cheers,

Renzo Carbonara

             reply	other threads:[~2008-04-12 20:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 20:40 k0001 [this message]
2008-04-25  9:14 ` [BUG] --pretty=format does not work ok with rev-list Jörg Sommer
2008-04-25 18:24   ` Junio C Hamano

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=1208032825.30817.15.camel@k0001 \
    --to=gnuk0001@gmail.com \
    --cc=git@vger.kernel.org \
    /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).