From patchwork Tue Aug 20 18:41:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1974578 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=oTFbCmcr; 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 4WpJGc73qLz1yXf for ; Wed, 21 Aug 2024 04:42:00 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 29DD13870863 for ; Tue, 20 Aug 2024 18:41:59 +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 2ED423870853 for ; Tue, 20 Aug 2024 18:41:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2ED423870853 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 2ED423870853 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=1724179290; cv=none; b=vjtfXy9dtPmC1TaemS6Svw1C/5uhVp4GQtfXyq1GtbLIbjpHuj4yrAgYnUFnz8/qMd3MVmjqWoNlApFkXf0PypMZSJUPXrkK9OBf+9YxPlhwkV9MQ/uXZn0J5r/prv7WFOJejM9BgMbLQqF4KflRwuCCfnpnW5CZbUs5SuCc9Lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724179290; c=relaxed/simple; bh=mRVDGsUF1ISgG9IReQTqCKDRShaO6W+SyOiJQya3J/s=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=Ie4Qp8EgDl7HIGlcsCsK+yqcnrcO2hg/g7OoVQy07ntOhLVe9PmHUeeAQP8aLhE7lPjZ7uGSZqpRWB7HXfxI2aqpAJyab6Pree15DaZtuNdcCi7r031PhrkSV5DYcYsLl0UJWBeLi0DUrU/dst9NYauzXhdbxG0p5l4Tr8n9kY0= 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 9D79660EE6; Tue, 20 Aug 2024 18:41:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF711C4AF0B; Tue, 20 Aug 2024 18:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724179288; bh=mRVDGsUF1ISgG9IReQTqCKDRShaO6W+SyOiJQya3J/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oTFbCmcr79Dlw9LDnsaqx1hVhVV6UaasDk9Cb7vbeiElkcSf508kaACtpi4DeMd6K wtf9LnHR0JzkevJ6CXRa9yKz6aOs/LmcT4sc5ifT2Lo3okM8nvQJ3FfAqRh556b1BV AZc8iRI2TfdVAznWIqiDCZsu0N6RPmstdV36P97C/uffHy6hM+6ok6TosR/6x9tEl+ Fvs8nr+GZM53T0Ms15bUKYdlSmyDEgUHEwfwvfJO1TCOvz9A5sLXR/UJKAZhRlRNox xnNwrAo0y0CZ5qqUEL8zHLPynbXoe2+cUfwIsVAqAqa3vtwdFSpF8selVDTDO2xSKC RKaiDIYh0O4Hw== Date: Tue, 20 Aug 2024 20:41:21 +0200 From: Alejandro Colomar To: gcc-patches@gcc.gnu.org Cc: Alejandro Colomar , Joseph Myers , Gabriel Ravier , Jakub Jelinek , Kees Cook , Qing Zhao , Jens Gustedt , David Brown , Florian Weimer , Andreas Schwab , Timm Baeder , Daniel Plakosh , "A. Jiang" , Eugene Zelenko , Aaron Ballman , Paul Koning , Daniel Lundin , Nikolaos Strimpas , JeanHeyd Meneide , Fernando Borretti , Jonathan Protzenko , Chris Bazley , Ville Voutilainen , Alex Celeste , Jakub =?utf-8?q?=C5=81ukasiewicz?= , Douglas McIlroy , Jason Merrill , Xavier Del Campo Romero , Martin Uecker Subject: [PATCH v11 1/4] contrib/: Add support for Cc: and Link: tags Message-ID: <2e851b8f8d257085ece4e46c49731d2657e41739.1724178789.git.alx@kernel.org> X-Mailer: git-send-email 2.45.2 References: <20240728141547.302478-1-alx@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-10.0 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, 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 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 contrib/ChangeLog: * gcc-changelog/git_commit.py: (GitCommit): Add support for 'Cc: ' and 'Link: ' tags. Cc: Jason Merrill Signed-off-by: Alejandro Colomar --- contrib/gcc-changelog/git_commit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 87ecb9e1a17..64fb986b74c 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -182,7 +182,8 @@ CO_AUTHORED_BY_PREFIX = 'co-authored-by: ' REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ', 'acked-by: ', 'tested-by: ', 'reported-by: ', - 'suggested-by: ') + 'suggested-by: ', 'cc: ') +LINK_PREFIXES = ('link: ') DATE_FORMAT = '%Y-%m-%d' @@ -524,6 +525,8 @@ class GitCommit: continue elif lowered_line.startswith(REVIEW_PREFIXES): continue + elif lowered_line.startswith(LINK_PREFIXES): + continue else: m = cherry_pick_regex.search(line) if m: