aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2023-08-02 10:55:19 +0200
committerMarc Poulhiès <dkm@kataplop.net>2023-08-02 18:33:30 +0000
commit95dcbb25a1199b4f6a8d602c4b1265ab6fa5f44a (patch)
treea086560546f2dbb93146144c2cd47c2383f1e0a0
parent6c63150705816e38906fafd4517d0c1d1b4adcc3 (diff)
downloadgcc-95dcbb25a1199b4f6a8d602c4b1265ab6fa5f44a.zip
gcc-95dcbb25a1199b4f6a8d602c4b1265ab6fa5f44a.tar.gz
gcc-95dcbb25a1199b4f6a8d602c4b1265ab6fa5f44a.tar.bz2
mklog: handle Signed-Off-By, minor cleanup
fixup for: commit 1531c699220160e21655fac29b693a436f564188 Author: Marc Poulhiès <dkm@kataplop.net> AuthorDate: Thu Jul 6 22:40:57 2023 +0200 Commit: CohenArthur <arthur.cohen@embecosm.com> CommitDate: Wed Jul 12 11:41:31 2023 +0000 mklog: handle Signed-Off-By, minor cleanup The regex was not matching the # comments. contrib/ChangeLog: * mklog.py (FIRST_LINE_OF_END_RE): Correctly match comments. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
-rwxr-xr-xcontrib/mklog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mklog.py b/contrib/mklog.py
index e5cc69e..9ab59b6 100755
--- a/contrib/mklog.py
+++ b/contrib/mklog.py
@@ -68,7 +68,7 @@ TAB_WIDTH = 8
# +--------------------------------------------------+
# this regex matches the first line of the "end" in the initial commit message
-FIRST_LINE_OF_END_RE = re.compile('(?i)^(signed-off-by|co-authored-by|#): ')
+FIRST_LINE_OF_END_RE = re.compile('(?i)^(signed-off-by:|co-authored-by:|#) ')
pr_regex = re.compile(r'(\/(\/|\*)|[Cc*!])\s+(?P<pr>PR [a-z+-]+\/[0-9]+)')
prnum_regex = re.compile(r'PR (?P<comp>[a-z+-]+)/(?P<num>[0-9]+)')