public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-788] gcc-changelog: detect Co-Authored-By before ChangeLog entries
@ 2021-05-14  8:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-05-14  8:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ae3e0b8bc204d1f6ce858c2637e1e72b636af3a2

commit r12-788-gae3e0b8bc204d1f6ce858c2637e1e72b636af3a2
Author: Martin Liska <mliska@suse.cz>
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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-14  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14  8:47 [gcc r12-788] gcc-changelog: detect Co-Authored-By before ChangeLog entries Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).