Re: [PATCH v2 1/2] pretty: add X-Change-ID to mail formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: 42F3F1862E3CC4B8.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux