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

Possible problem in --pretty=reference?

From
Dirk Gouders <dirk@gouders.net>
Date
Dec 12, 2025, 13:25 UTC
Message-ID
<ghfr9fbznh.fsf@gouders.net>

I just did a commit to code I am working on ([1] gives you a link to the full repo) and noticed that --pretty=reference seems to not like my commit message:

This is the output of `git log`:
------------------------------------------------------------------------
commit 93abaadcb0150e3555c91ff1f136cb029da87c0f (HEAD -> next)
Author: Dirk Gouders <dirk@gouders.net>
Date:   Fri Dec 12 13:54:36 2025 +0100
    line.normalized: fix a comment and a call of lsp_mdup2str() in the code
    When .normalized of lsp_line_t was given a null-terminator
    (ee7b96f (lsp_normalize: null-terminate returned data, 2025-12-03))
    a comment in lsp_line_t has been overseen.
    Fix this now.
    Further, at one location, .normalized is still copied with lsp_mdup2str()
    which isn't longer necessary.  That still works but doesn't show that we
    know, .normalized is null-terminated.
    Fix this by using lsp_mdup(), instead.
    Fixes: ee7b96f (lsp_normalize: null-terminate returned data, 2025-12-03)
    Signed-off-by: Dirk Gouders <dirk@gouders.net>
------------------------------------------------------------------------
And here is the output of `git log --pretty=reference`:

------------------------------------------------------------------------ 93abaad (line.normalized: fix a comment and a call of lsp_mdup2str() in the code, 2025-12-12) ------------------------------------------------------------------------

All other commits look good with --pretty=reference...
Regards,
Dirk
[1] https://github.com/dgouders/lsp/tree/next
Next: Dirk Gouders
Message 1 of 2 in “Possible problem in --pretty=reference?”
  1. Dirk GoudersDec 12, 2025
  2. Dirk GoudersDec 12, 2025

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.