From: Junio C Hamano <gitster@pobox.com>
To: "Jörg Sommer" <joerg@alea.gnuu.de>
Cc: git@vger.kernel.org
Subject: Re: [BUG] --pretty=format does not work ok with rev-list
Date: Fri, 25 Apr 2008 11:24:57 -0700 [thread overview]
Message-ID: <7vbq3xpzba.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <slrng1386p.ujv.joerg@alea.gnuu.de> (Jörg Sommer's message of "Fri, 25 Apr 2008 09:14:01 +0000 (UTC)")
Jörg Sommer <joerg@alea.gnuu.de> writes:
>> k@k0001 ~/linux-2.6 $ git rev-list -2 --pretty=format:"%H: %cn" master
>> commit f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed
>> f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed: Linus Torvalds
>> commit 44cad261025c04327fd7e847a7088fd3031b0c3e
>> 44cad261025c04327fd7e847a7088fd3031b0c3e: Linus Torvalds
>
> Is 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.
I personally do not think the above is a particularly desirable output,
but that's how rev-list worked for a long time and existing scripts
probably expect it that way.
rev-list is for script consumption, and giving --pretty=format that has %H
in it would be asking for redundant information.
prev parent reply other threads:[~2008-04-25 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-12 20:40 [BUG] --pretty=format does not work ok with rev-list k0001
2008-04-25 9:14 ` Jörg Sommer
2008-04-25 18:24 ` Junio C Hamano [this message]
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=7vbq3xpzba.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=joerg@alea.gnuu.de \
/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).