From patchwork Mon Jun 19 09:55:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 109885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2888454vqr; Mon, 19 Jun 2023 03:11:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4d6y2AADoACwuxYf+gjP/SEelSoZSpgcxcJvX0XmF+GrdbOrhCHypfDidzYMH18TDWwPqI X-Received: by 2002:a05:6a21:6da4:b0:121:b5af:acb1 with SMTP id wl36-20020a056a216da400b00121b5afacb1mr3567575pzb.29.1687169459819; Mon, 19 Jun 2023 03:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169459; cv=none; d=google.com; s=arc-20160816; b=VeongUVp8YDlQGu2nUMHhPPFswuWofD6AUkeuoC3P2hZrWikhaFzFZ9IktBMAYV+ZR oB/1/P7WnhnrSXKC0JjVX3KzP0PvOsQ45GSIMsxyGbh8emYytJak9mDzfiap3dyRCX+R vSmoaA1rTIUx+FIGnhG2lGEUA2Zv7WAOF+9WE4C8L6qegJuC8Dj6gPTmvB2BoeGpkxqN WNlnpAjeqrHVYCMN59Z/d1prAD4e/+p/1WCWVvj7Z0gF5Jzqv6hm1lTSEC0a77JjanO7 0CPzTaqDDrjTxuHMTzI3tDwdM0bgTKLW22U33qdOjjy3gbfiOnoFcZ2va4yflU8p6/1/ FG5w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6tdjUN64vUCYrK7fSaz6FoAbfxa1GAFbufR/hoALhss=; b=Ia+ojCTZzQ2ycBi8x23AVeIJoGTxLTzyabvQyKgl/ueigkgCK7za9HLhZUz7uD8SgG ZFXZeht30vgJ8LPTvkRzGDJ79haJn0/xuDg/QrR25n/e8Qc+ZAWkaYcR63oqtJpI19PN 9aKPx29XCDJQ7302s3eWBrxw3G98YQdYkzvttcmDRgqeLzdknHX8ovKUh7rr3DlN1Bmn Ko+mSqK9vazPwSsc4VqC7P7g2ZfLibOBrqL/0gDRno9ZB7qsoNSgIFvRpUcDU6PI7oKg uIA2Ozzh1LhYBcRod/Gstha/zilpR9djzw/d4EUd8eCuGwFaVuR3uaVfYDxrnvfojVkF 6lfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=FQBJ0cot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020aa796d3000000b006665df4f1f0si2280138pfq.136.2023.06.19.03.10.46; Mon, 19 Jun 2023 03:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=FQBJ0cot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231723AbjFSJz4 (ORCPT + 99 others); Mon, 19 Jun 2023 05:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbjFSJzu (ORCPT ); Mon, 19 Jun 2023 05:55:50 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4E8128; Mon, 19 Jun 2023 02:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=6tdjUN64vUCYrK7fSaz6FoAbfxa1GAFbufR/hoALhss=; t=1687168548; x=1688378148; b=FQBJ0cotwx07rA6rB4tgzTuOfudc5HHHeumWWrcDOCsdL/AjXdz1ZycrgP94d+DGgxgHOfpAXx7 8jEP6oC+s9tC+YAWg6qv6IOTfTbxptlKhJHGSQBjM2WkjmTXYpNX4QHudqG/BRqsQHXsUgrO7wqhb NMUeQkSx3/kVJ5R486NU4ck1/RxCM1NxxZm4Q4u6zItP3WZuOIOlEFNILJuB5j2XfJk7gdpeMBqZD oagL2FXgNxDqouIZqW7EKLjoY5s/tRbA0nW0SQh75rPQRJAPzTHj1HSyAVq0F0oKxJMwSmyQXxrSq YOr4R1a2iQd2gy1YDLIw/fe0V8xGN0+oLQ4w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qBBbt-00BHZj-04; Mon, 19 Jun 2023 11:55:45 +0200 From: Johannes Berg To: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Jonathan Corbet , Greg Kroah-Hartman , Johannes Berg Subject: [PATCH] Documentation: update git configuration for Link: tag Date: Mon, 19 Jun 2023 11:55:34 +0200 Message-ID: <20230619115533.981f6abaca01.I1960c39b1d61e8514afcef4806a450a209133187@changeid> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769125403565430651?= X-GMAIL-MSGID: =?utf-8?q?1769125403565430651?= From: Johannes Berg The latest version of git (2.41.0) changed the spelling of Message-Id to Message-ID. Adjust the perl script here to accept both spellings. Signed-off-by: Johannes Berg Tested-by: Greg Kroah-Hartman --- Documentation/maintainer/configure-git.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/maintainer/configure-git.rst b/Documentation/maintainer/configure-git.rst index 80ae5030a590..ec0ddfb9cdd3 100644 --- a/Documentation/maintainer/configure-git.rst +++ b/Documentation/maintainer/configure-git.rst @@ -56,7 +56,7 @@ by adding the following hook into your git: $ cat >.git/hooks/applypatch-msg <<'EOF' #!/bin/sh . git-sh-setup - perl -pi -e 's|^Message-Id:\s*]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1" + perl -pi -e 's|^Message-I[dD]:\s*]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1" test -x "$GIT_DIR/hooks/commit-msg" && exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} :