All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Niels Möller" <nisse@glasklarteknik.se>
Cc: git@vger.kernel.org
Subject: Re: Unexpected effect of log.showSignature on tformat:%H.
Date: Tue, 19 Nov 2024 18:37:48 +0900	[thread overview]
Message-ID: <xmqqmshvd0nn.fsf@gitster.g> (raw)
In-Reply-To: <87cyirtweq.fsf@localhost> ("Niels Möller"'s message of "Tue, 19 Nov 2024 10:17:33 +0100")

Niels Möller <nisse@glasklarteknik.se> writes:

> I had expected the output of git show -s --format='tformat:%H' to be
> always the same, and was surprised to find that scripts using this
> construction started to fail after I set log.showSignature true.

It is a bit unexpected, but knowing how the command options evolved,
it is not all that surprising X-<.  If you are using --format, you
are expected to use the %G placeholder and friends when you are
interested in signatures.  The --show-signature option is unaware of
the other formatting options like --pretty={short,oneline,fuller, so
it is understandable (not "expected") what you are seeing.


  reply	other threads:[~2024-11-19  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19  9:17 Unexpected effect of log.showSignature on tformat:%H Niels Möller
2024-11-19  9:37 ` Junio C Hamano [this message]
2024-11-19 10:06   ` Niels Möller
2024-11-19 22:14 ` brian m. carlson
2024-11-21  9:08   ` Niels Möller

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=xmqqmshvd0nn.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=nisse@glasklarteknik.se \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.