lkml.org 
[lkml]   [2011]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: tip: New "Link:" tag to replace "LKML-Reference:"
On 04/07/2011 08:03 AM, Peter Zijlstra wrote:
>
> D'0h ok.. but the scheme would work with any generated msgid, all we
> need is to generate one for commits that lack a Link tag and insert it
> using the prepare-commit-msg/commit-msg hooks and for the post-commit
> hook to recognize it and use that actual msgid.
>
> The only thing to avoid is msgid collision, but given that MUAs already
> have this problem all we need to do is borrow some of their logic.
>

OK, this doesn't really need any hooks at all (the tip-bot is not a
hook). The committer is, and *has to be* responsible for getting the
unique string into the Link: tag, through whatever means they feel is
appropriate.

Based on the previous message, I'm going to modify the bot to recognize
the pattern:

Link: http://lkml.kernel.org/r/tip-`ranpwd -l 24`@git.kernel.org

... to override the Message-ID. It seems like the least ugly of a lot
of ugly options.

-hpa

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



\
 
 \ /
  Last update: 2011-04-07 22:35    [W:0.099 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site