Re: [Ksummit-discuss] Allowing something Change-Id (or something like it) in kernel commits

Mark Brown
2019-08-23T21:25:59Z

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

On Fri, Aug 23, 2019 at 11:15:55PM +0200, Thomas Gleixner wrote:

> For the maintainer side there was something mentioned about some git-am
> option which allows to insert the link somehow with some extra hook
> magic. IIRC, it's in one of the ksummit threads, but I can't find it right
> now.

It was to have this:

. git-sh-setup
perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"

in your .git/hooks/applypatch-msg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]