From: Martin Liska Date: Fri, 14 May 2021 08:44:33 +0000 (+0200) Subject: gcc-changelog: detect Co-Authored-By before ChangeLog entries X-Git-Tag: basepoints/gcc-13~7525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2;p=thirdparty%2Fgcc.git 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 --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 8f9b266fde96..4958ab9c1595 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: