Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp184558pxb; Mon, 25 Oct 2021 06:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTtLB/g4Mw/bsoUaQSCfA59RwXafbKZaV/8hmHk6ftkiWT0eB3brDRgelO+gSGlhAmBFD3 X-Received: by 2002:a50:be8f:: with SMTP id b15mr27188904edk.200.1635168125714; Mon, 25 Oct 2021 06:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635168125; cv=none; d=google.com; s=arc-20160816; b=SfwlTCT4stGE1CfOd+wpFqyY5EKC3hNoQEWdmKxOSXvl4NkjlzvAW6Ot9WptLl+AdP YZ3JUEEJ56FNTK1FfhcRoY+oOC7A8IcwL736Gu2LYr2S7FxenNhn19s1IIqnLmB8extl pqVjjbt2os/ZMVj9iO4NR6W8MPyFbQY6GrcBvRKhNq0qMbGhiUFJb1MNJMcHuJfKNvPc SdFPStwJecaUr9CCe3ydp3hxCqQBU2dvqLf195KX7N1pHA70YdlS2D2lBhCZKHe36M2q TvFMzIjcNaSul5ujftzyPnCJ3NP3VtNjAY8eqEMha0pdOf/w06LXsoQ+lQsuJIJb+U1g FgWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LycNwBYiTKfqE4SwFg2Y6dk7JplHK6lC8MT8bkT3jA8=; b=QtomUMdQz1TWQXVmfMefZKJCbJgy2vKPuE6HvD5I3XvxGwDdsHoyz4n4H9oKNRMHSE NlENgRQAM5wzRr9JjzNRzIJC3pHsqRupd7rAM73V5PBDxazf+cywjRfOCmDdKLTpYWpD d3eX74LNY7rpP1OeJEsIfu5NOJWmxpJradDLkrUFCaVML9VpQUDDyp8LwcqgxOKhLK3R gIS5JahJBOsz9JgbJ7V5B6hq2zAbJ7XqtC8ig3+YIywjzldDALXJMEP3jTSrPMjeDI3E mjm3j6RlAuwCgOqfFAu7U35uwmKlkNSOi5hpBWXcsS2S3fXvU/8OBEl8shEyEaAdFTJ2 JjtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs9si1836814ejc.534.2021.10.25.06.21.39; Mon, 25 Oct 2021 06:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbhJYJJA (ORCPT + 99 others); Mon, 25 Oct 2021 05:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbhJYJJA (ORCPT ); Mon, 25 Oct 2021 05:09:00 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34621C061745; Mon, 25 Oct 2021 02:06:38 -0700 (PDT) Received: from ip4d173d4a.dynamic.kabel-deutschland.de ([77.23.61.74] helo=truhe.fritz.box); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1mevwB-0005ei-Se; Mon, 25 Oct 2021 11:06:35 +0200 From: Thorsten Leemhuis To: Jonathan Corbet Cc: Randy Dunlap , Konstantin Ryabitsev , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/1] docs: submitting-patches: make section about the Link: tag more explicit Date: Mon, 25 Oct 2021 11:06:35 +0200 Message-Id: <27105768dc19b395e7c8e7a80d056d1ff9c570d0.1635152553.git.linux@leemhuis.info> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1635152798;d914673d; X-HE-SMSGID: 1mevwB-0005ei-Se Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mention the 'Link' tag in the section about adding URLs to the commit msg, to make it clearer they "_primarily_ [...] should be about background", as Linus recently stated (see the link below). That makes the explanation also easier to find with a text search. For the same reason and to improve comprehensibility provide an example, too. Slightly improve the text at the same time to make it more obvious developers are meant to add links to issue reports in mailing list archives, as those allow regression tracking efforts to automatically check which bugs got resolved. Move the section also downwards slightly, to reduce jumping back and forth between aspects relevant for the top and the bottom part of the commit msg. Link: https://lore.kernel.org/lkml/CAHk-=wgBhyLhQLPem1vybKNt7BKP+=qF=veBgc7VirZaXn4FUw@mail.gmail.com/ CC: Konstantin Ryabitsev Signed-off-by: Thorsten Leemhuis --- Documentation/process/submitting-patches.rst | 33 +++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/Documentation/process/submitting-patches.rst b/Documentation/process/submitting-patches.rst index b0f31aa82fcd..cbe9ddbe2775 100644 --- a/Documentation/process/submitting-patches.rst +++ b/Documentation/process/submitting-patches.rst @@ -96,17 +96,6 @@ instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour. -If the patch fixes a logged bug entry, refer to that bug entry by -number and URL. If the patch follows from a mailing list discussion, -give a URL to the mailing list archive; use the https://lore.kernel.org/ -redirector with a ``Message-Id``, to ensure that the links cannot become -stale. - -However, try to make your explanation understandable without external -resources. In addition to giving a URL to a mailing list archive or -bug, summarize the relevant points of the discussion that led to the -patch as submitted. - If you want to refer to a specific commit, don't just refer to the SHA-1 ID of the commit. Please also include the oneline summary of the commit, to make it easier for reviewers to know what it is about. @@ -123,6 +112,28 @@ collisions with shorter IDs a real possibility. Bear in mind that, even if there is no collision with your six-character ID now, that condition may change five years from now. +If related discussions or any other background information behind the change +can be found on the web, add 'Link:' tags pointing to it. In case your patch +for example fixes a bug, add a tag with a URL referencing the report in the +mailing list archives or a bug tracker; if the patch is a result of some +earlier mailing list discussion or something documented on the web, point to +it. + +When linking to mailing list archives, preferably use the lore.kernel.org +message archiver service. To create the link URL, use the contents of the +``Message-Id`` header of the message without the surrounding angle brackets. +For example:: + + Link: https://lore.kernel.org/r/30th.anniversary.repost@klaava.Helsinki.FI/ + +Please check the link to make sure that it is actually working and points +to the relevant message. + +However, try to make your explanation understandable without external +resources. In addition to giving a URL to a mailing list archive or bug, +summarize the relevant points of the discussion that led to the +patch as submitted. + If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. Do not split the tag across multiple -- 2.31.1