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

Re: [PATCH] pretty: add X-Change-ID to mail formats

From
DDDrew DeVault <drew@ddevault.org>
Date
Jul 3, 2025, 11:32 UTC
Message-ID
<DB2DY0C84G1R.3V7LEG87PHVTW@ddevault.org>
In-Reply-To
<DB2AARC4OKR3.48T4CC70KBUC@buenzli.dev>
Sweet! I'm going to send a follow-up with git-am support.
On Thu Jul 3, 2025 at 10:41 AM CEST, Remo Senekowitsch wrote:
Show 17 quoted lines
> This can kind of be tested already. Because Jujutsu already writes the
> change-id header and sends it via git push, it must also be able to
> import those headers from commits it hasn't seen before. Possible steps
> to verify this behavior:
>
> * Create a repo with Jujutsu, make some commits, push them to a remote.
>   (can be one on the local file system)
>
> * Clone this repo via Git.
>
> * (optional) Confirm with `git cat-file -p @` that the change-id header
>   was preserved.
>
> * Run `jj git init --colocate .` to upgrade the git repo to a jj repo.
>
> * Run `jj log` and observe that Jujutsu correctly imported the change-id
>   headers of existing commits it didn't know about previously.

I can confirm all of this works with the v2 I'm about to send, though I have ascertained as much through a manual testing procedure that resembles your recommendation here.

One thing I'm less certain about is how to expand the tests in t/ to test this behavior. I'll elaborate in the timely commentary of v2.

Previous: Remo Senekowitsch
Message 3 of 3 in “pretty: add X-Change-ID to mail formats”
  1. pretty: add X-Change-ID to mail formatsDrew DeVault, Jul 3, 2025
  2. Remo SenekowitschJul 3, 2025
  3. Drew DeVaultJul 3, 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.