From: Drew DeVault Date: Sun, 06 Jul 2025 10:46:01 GMT Subject: Re: [PATCH v2 1/2] pretty: add X-Change-ID to mail formats Message-ID: In-Reply-To: <20250706033710.GD3041790@coredump.intra.peff.net> On Sun Jul 6, 2025 at 5:37 AM CEST, Jeff King wrote: > 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.