Re: tip: New "Link:" tag to replace "LKML-Reference:"

From: H. Peter Anvin
Date: Thu Apr 07 2011 - 10:56:44 EST


On 04/07/2011 07:54 AM, Peter Zijlstra wrote:
>
> Can't we use a prepare-commit-msg or commit-msg hook to re-write the
> commit message to include a Link tag when one is missing, using
> something like:
>
> Link: http://lkml.kernel.org/r/tip-$SHA@xxxxxxxxxxxxxx
>
> And have the post-commit hook that sends the messages recognize this
> form and send the message using the correct msgid.
>
> That way the commit includes a correct and clickable link, doesn't
> require magic knowledge and doesn't need the committer to do extra work.
>

Think about it... hint: the SHA1 is a cryptographically secure signature
of the commit object.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/