git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unexpected effect of log.showSignature on tformat:%H.

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 19, 2024, 09:37 UTC
Message-ID
<xmqqmshvd0nn.fsf@gitster.g>
In-Reply-To
<87cyirtweq.fsf@localhost>
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.

Previous: Niels MöllerNext: Niels Möller
Message 2 of 5 in “Unexpected effect of log.showSignature on tformat:%H.”
  1. Niels MöllerNov 19, 2024
  2. Junio C HamanoNov 19, 2024
  3. Niels MöllerNov 19, 2024
  4. brian m. carlsonNov 19, 2024
  5. Niels MöllerNov 21, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.