diff options
author | Martin Liska <mliska@suse.cz> | 2021-05-14 10:44:33 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-14 10:44:33 +0200 |
commit | ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2 (patch) | |
tree | ebc56307aaafe5910d7ea23fa4cd5566b8f9fdd9 /contrib/gcc-changelog | |
parent | f3b1516d9dfd969d7cc1ca6f26dec13478a1c458 (diff) | |
download | gcc-ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2.zip gcc-ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2.tar.gz gcc-ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2.tar.bz2 |
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.
Diffstat (limited to 'contrib/gcc-changelog')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 8f9b266..4958ab9 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: |