Re: [PATCH v2 1/2] pretty: add X-Change-ID to mail formats
- From
- Drew DeVault <drew@ddevault.org>
- Date
- Jul 6, 2025, 10:46 UTC
- Message-ID
- <DB4WU136IYR2.3ELSGQUDD6QI8@ddevault.org>
- In-Reply-To
- <20250706033710.GD3041790@coredump.intra.peff.net>
On Sun Jul 6, 2025 at 5:37 AM CEST, Jeff King wrote:
Show 15 quoted lines
> I don't have any opinion on the feature itself, but the plumbing way to > do it would perhaps be: > > # make some vanilla commit... > git commit -m foo && > > # make a new variant with the change id > commit=$( > git cat-file commit HEAD | > perl -lpe 'print "change-id foo" unless length' | > git hash-object -w --stdin -t commit > ) && > > # replace the old one > git update-ref HEAD $commit
Thanks! I'll incorporate this into the tests in the next patch version after some further discussion.