From: Michael J Gruber <git@drmicha.warpmail.net>
To: Francesc Zacarias <francesc@spotify.com>, git@vger.kernel.org
Subject: Re: cosmetic bug: "git show --pretty:format" produces different output than "git show --format"
Date: Thu, 15 Jan 2015 17:23:39 +0100 [thread overview]
Message-ID: <54B7E98B.6020907@drmicha.warpmail.net> (raw)
In-Reply-To: <CAEKevnWfFq9gyN8Ga8zXUDwk_+Mk6RK0HVT-+sbejjVPw0U0=w@mail.gmail.com>
Francesc Zacarias schrieb am 15.01.2015 um 14:55:
> Hi!
>
> I noticed that git produces differing output for
> "git show --pretty:format show" and "git show --format", even though
> the man page says that both are equivalent.
> "git show --format" always appends an empty line at the end. The only
> way I've found to get rid of that empty line in --format is by adding
> -s option.
>
> So, "git show --pretty:format" and "git show -s --format" do produce
> the same output.
>
> I can reproduce this issue in Ubuntu Trusty (git version 1.9.1) and
> Debian Jessie (git version 2.1.4).
>
The first part of the man page is a bit sloppy, but refers to the FORMAT
section. There, it says that "--pretty" is equivalent to
"--pretty=tformat:" which is different from "--pretty=format:".
Unfortunately, "--format" seems to be parsed as ("--pretty" and
therefore?) "--pretty=tformat:" which I consider a bug.
Michael
next prev parent reply other threads:[~2015-01-15 16:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 13:55 cosmetic bug: "git show --pretty:format" produces different output than "git show --format" Francesc Zacarias
2015-01-15 16:23 ` Michael J Gruber [this message]
2015-01-15 17:39 ` Junio C Hamano
2015-01-15 19:25 ` 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=54B7E98B.6020907@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=francesc@spotify.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