From patchwork Thu Oct 17 14:54:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1998647 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=r9xgsMpx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XTrTW156Bz1xvV for ; Fri, 18 Oct 2024 01:54:39 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 60A3C3858D37 for ; Thu, 17 Oct 2024 14:54:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by sourceware.org (Postfix) with ESMTPS id 482C73858D37 for ; Thu, 17 Oct 2024 14:54:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 482C73858D37 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 482C73858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2604:1380:4641:c500::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729176857; cv=none; b=xFgcz3bUwDb8pp3Tm3OEEaU4VJswUqL5CJJzfuw8YgKCaB3EAjrYFIvuiFpzEj0OdmeL8zFD+ywW4Pi5YeEHztf5K6DlbwZIiuK7pxHoyT4rKa63QwUusl89wGcIcKpe+01GxYUggNfItk5LuIqvrmKqcobCDS43PkXX9aBiPhQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729176857; c=relaxed/simple; bh=u8vqgrFBhyXvGu6tN53XxICOZEf2XaD8s0ziof4dfNw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=u5TSZwTPCb7XaZgp6VGAWNKjhGlCuONiyjIYebdE4d3Aw5s+BgXOp3Ox/PvlIJb2jVnDfBpFekCTOFWdY8j6wMGMY21AvURhBZMBeOgsmByfHRxQicP25Y9zUgDkSiDa+pkjHQUuG6HhBlMhfD0bKNOWW9ok3u4bELE9tH0bEH0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 588E25C5BC3; Thu, 17 Oct 2024 14:54:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6D23C4CEC3; Thu, 17 Oct 2024 14:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729176844; bh=u8vqgrFBhyXvGu6tN53XxICOZEf2XaD8s0ziof4dfNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r9xgsMpxXZ2/hKjO4+iuXXpH8LOQvByAFKa5KHiYnPy2jTAPUb0xwh++xWJCC0zKT gTvaq0u3iVcxvZh7GcN52WQ0ug4P+pfS5/WGf99dFxXRMGq2RxnqvO7d7AFn3eDNPA AXeUEfwLj5/erkaHt7dOq8RdZXuwlDPUdjnQZ13mrKsTTlRMqWy6TdyK0j8j5X6uk7 Uuw1kWTll2NHXX1sL3oZfQMkT8yqfDo2KFB1MjKoR2eszn7lpXVppO6lidG9pQMC6/ Ephzp35MiFkd1hesLPcf35t6mUYDzysf/2VDeEeqXJOVXVrHEVpLdvuHx9aASj0JIO Mqg8Gyiyu4jCg== Date: Thu, 17 Oct 2024 16:54:02 +0200 From: Alejandro Colomar To: gcc-patches@gcc.gnu.org Cc: Alejandro Colomar , Eric Gallager Subject: [PATCH v2] contrib/: Configure git-format-patch(1) to add To: gcc-patches@gcc.gnu.org Message-ID: <2bd0e0f82bf0b536a3827625d52f56e9cd27cd2e.1729176716.git.alx@kernel.org> X-Mailer: git-send-email 2.45.2 References: <2cbf2268a63174294d0425e6593ea6adc8fc0950.1729083275.git.alx@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2cbf2268a63174294d0425e6593ea6adc8fc0950.1729083275.git.alx@kernel.org> X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Just like we already do for git-send-email(1). In some cases, patches are prepared with git-format-patch(1), but are sent with a different program, or some flags to git-send-email(1) may accidentally inhibit the configuration. By adding the TO in the email file, we make sure that gcc-patches@ will receive the patch. contrib/ChangeLog: * gcc-git-customization.sh: Configure git-format-patch(1) to add 'To: gcc-patches@gcc.gnu.org'. Cc: Eric Gallager Signed-off-by: Alejandro Colomar --- Hi! v2 changes: - Fix comment. [Eric] Cheers, Alex Range-diff against v1: 1: 0ee3f802637 ! 1: 2bd0e0f82bf contrib/: Configure git-format-patch(1) to add To: gcc-patches@gcc.gnu.org @@ Commit message * gcc-git-customization.sh: Configure git-format-patch(1) to add 'To: gcc-patches@gcc.gnu.org'. + Cc: Eric Gallager Signed-off-by: Alejandro Colomar ## contrib/gcc-git-customization.sh ## -@@ contrib/gcc-git-customization.sh: git config diff.md.xfuncname '^\(define.*$' +@@ contrib/gcc-git-customization.sh: git config alias.gcc-style '!f() { + # *.md diff=md + git config diff.md.xfuncname '^\(define.*$' - # Tell git send-email where patches go. +-# Tell git send-email where patches go. ++# Tell git-format-patch(1)/git-send-email(1) where patches go. # ??? Maybe also set sendemail.tocmd to guess from MAINTAINERS? +git config format.to 'gcc-patches@gcc.gnu.org' git config sendemail.to 'gcc-patches@gcc.gnu.org' contrib/gcc-git-customization.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh index 54bd35ea1aa..dd59bece1dc 100755 --- a/contrib/gcc-git-customization.sh +++ b/contrib/gcc-git-customization.sh @@ -41,8 +41,9 @@ git config alias.gcc-style '!f() { # *.md diff=md git config diff.md.xfuncname '^\(define.*$' -# Tell git send-email where patches go. +# Tell git-format-patch(1)/git-send-email(1) where patches go. # ??? Maybe also set sendemail.tocmd to guess from MAINTAINERS? +git config format.to 'gcc-patches@gcc.gnu.org' git config sendemail.to 'gcc-patches@gcc.gnu.org' set_user=$(git config --get "user.name")