From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 41A5B386FC26; Fri, 14 May 2021 08:47:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41A5B386FC26 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-788] gcc-changelog: detect Co-Authored-By before ChangeLog entries X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: f3b1516d9dfd969d7cc1ca6f26dec13478a1c458 X-Git-Newrev: ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2 Message-Id: <20210514084750.41A5B386FC26@sourceware.org> Date: Fri, 14 May 2021 08:47:50 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 08:47:50 -0000 https://gcc.gnu.org/g:ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2 commit r12-788-gae3e0b8bc204d1f6ce858c2637e1e72b636af3a2 Author: Martin Liska Date: Fri May 14 10:44:33 2021 +0200 gcc-changelog: detect Co-Authored-By before ChangeLog entries contrib/ChangeLog: * gcc-changelog/git_commit.py: Support Co-Authored-By before a first ChangeLog entry. Diff: --- contrib/gcc-changelog/git_commit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 8f9b266fde9..4958ab9c159 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -409,7 +409,8 @@ class GitCommit: continue if (changelog_regex.match(b) or self.find_changelog_location(b) or star_prefix_regex.match(b) or pr_regex.match(b) - or dr_regex.match(b) or author_line_regex.match(b)): + or dr_regex.match(b) or author_line_regex.match(b) + or b.lower().startswith(CO_AUTHORED_BY_PREFIX)): self.changes = body[i:] return if not all_are_ignored: