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

Re: git-log --format missing trailing newline character

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Dec 23, 2024, 21:09 UTC
Message-ID
<8734ieyumd.fsf@igel.home>
In-Reply-To
<5aib7c6x5m6e4muutjuoqp3f4lvpeh3hz5qkwpayi2usm7b6yi@af2oucx5j4w5>
On Dez 23 2024, Alejandro Colomar wrote:
> Anyway, it feels awkward that git-log(1) skips the last newline whith
> --format=format.  Should that be fixed?
If you want terminator semantics, use tformat: instead of format:.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Previous: Alejandro ColomarNext: Alejandro Colomar
Message 4 of 7 in “git-log --format missing trailing newline character”
  1. Alejandro ColomarDec 23, 2024
  2. Kristoffer HaugsbakkDec 23, 2024
  3. Alejandro ColomarDec 23, 2024
  4. Andreas SchwabDec 23, 2024
  5. Alejandro ColomarDec 23, 2024
  6. Junio C HamanoDec 26, 2024
  7. Alejandro ColomarDec 26, 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.