Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765Ab1DGOyZ (ORCPT ); Thu, 7 Apr 2011 10:54:25 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:53031 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751171Ab1DGOyY convert rfc822-to-8bit (ORCPT ); Thu, 7 Apr 2011 10:54:24 -0400 Subject: Re: tip: New "Link:" tag to replace "LKML-Reference:" From: Peter Zijlstra To: "H. Peter Anvin" Cc: Thomas Gleixner , Ingo Molnar , Arnaldo Carvalho de Melo , Steven Rostedt , LKML In-Reply-To: <4D9DCDAB.9000707@zytor.com> References: <4D9CE4AE.4090303@zytor.com> <1302185312.3329.1240.camel@twins> <4D9DCDAB.9000707@zytor.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 07 Apr 2011 16:54:10 +0200 Message-ID: <1302188050.9086.27.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2886 Lines: 72 On Thu, 2011-04-07 at 07:43 -0700, H. Peter Anvin wrote: > On 04/07/2011 07:08 AM, Peter Zijlstra wrote: > > > > OK, so I fixed my scripts to match this and it all seems to work, except > > for the: > > > > LKML-Reference: > > > > case, where the tip-bot would mail it out for me. While I try not to use > > it too much its convenient for quick fixes etc. Will the absence of a > > Link tag suffice or is there more to it? > > > > OK, I have asked for a long time that we do not use . > > The recommended pattern has been: > > LKML-Reference: > > ... which at least indicates to the user how the message-ID is to be > generated (* being a placeholder for the commit SHA1). Oh, I never heard of that, it would've been easy to make my scripts do that if that were the preferred form, a well. > The only think I can think of for how to make Link: work would be to > recognize a pattern that the tip-bot would use as its own Message-ID > *instead* of the commit SHA1 pattern that it would normally use. There > are disadvantages to every approach, of course. > > We have a couple of alternatives: > > a) Continue to use "LKML-Reference: " > + At least gives a hint how to find the newly-formed LKML thread > - Not a clickable link > - Somewhat noisy > b) Just Cc: everything to LKML regardless of tag > + Easy > - No way to *not* post everything to LKML > - No way to locate the thread without knowing the magic > c) A recognizable pattern with a unique pattern *generated by the > committer*, something like: > Link: http://lkml.kernel.org/r/tip-`uuidgen -r`@git.kernel.org > + Clickable link > - Long (the above is 86 characters wide) > - Message-IDs of a nonstandard form > - Bad things will happen if someone re-uses an identifier > - String has to be generated by machine at commit time > > [Using ranpwd instead of uuidgen allows for a more compact random string > by using a wider character set. For example: > > Link: http://lkml.kernel.org/r/tip-`ranpwd -l 24`@git.kernel.org > > ... has the same entropy but is 74 characters wide.] 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@git.kernel.org 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/