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

Re: [PATCH 2/2] revision: handle argv movement in parse_revision_opt()

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Sep 29, 2026, 07:43 UTC
Message-ID
<7ffbbf0b-4954-4ee8-863c-4ca89ae662c6@app.fastmail.com>
In-Reply-To
<20260928032553.GA493672@coredump.intra.peff.net>
 On Mon, Sep 28, 2026, at 05:25, Jeff King wrote:
> On Sat, Sep 26, 2026 at 11:00:05AM +0200, Kristoffer Haugsbakk wrote:
>> I ought to send in a `.mailmap` change with my canonical email address.
>
> We don't mailmap trailers, though. [...]

Yes, that’s the reason. There’s no dynamic remapping after the fact. But with a mailmap entry you can ask git-check-mailmap(1) if you have the correct entry while writing or normalizing the commit.

I had use for that once when I was collecting `Reported-by`. One report was from three years prior. But in the meantime, this person had changed their address. But they had recorded it in the `.mailmap`.

But for such a normalization to be workable at all I would have to try to add something like `--evaluate-all-cmds` to git-interpret- trailers(1). Because `trailer.<key-alias>.cmd` will not evaluate trailer values if it is just reading in a file without any `--trailer` options (as well).

***
Which is an itch that no one else has to care about.
Previous: Jeff KingNext: Junio C Hamano
Message 8 of 9 in “[BUG] revision: premature free-and-null causes “unknown option `(null)`””
  1. Kristoffer HaugsbakkSep 25, 2026
  2. Jeff KingSep 25, 2026
  3. 0/2 some parse_revision_opt() bugfixesJeff King, Sep 25, 2026
  4. 1/2 revision: avoid reporting known options as unknown on errorJeff King, Sep 25, 2026
  5. 2/2 revision: handle argv movement in parse_revision_opt()Jeff King, Sep 25, 2026
  6. Kristoffer HaugsbakkSep 26, 2026
  7. Jeff KingSep 28, 2026
  8. Kristoffer HaugsbakkSep 29, 2026
  9. Junio C HamanoSep 25, 2026

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.