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.
This commit is contained in:
Martin Liska 2021-05-14 10:44:33 +02:00
parent f3b1516d9d
commit ae3e0b8bc2
1 changed files with 2 additions and 1 deletions

View File

@ -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: