Message ID | 2e851b8f8d257085ece4e46c49731d2657e41739.1724178789.git.alx@kernel.org |
---|---|
State | New |
Headers | show |
Series | c: Add __nelementsof__ operator | expand |
Hi, On Tue, Aug 20, 2024 at 08:41:28PM GMT, Alejandro Colomar wrote: > contrib/ChangeLog: > > * gcc-changelog/git_commit.py: (GitCommit): There's a spurious ':' in the line above (before the '('). I've removed it for an eventual v12. > Add support for 'Cc: ' and 'Link: ' tags. > > Cc: Jason Merrill <jason@redhat.com> > Signed-off-by: Alejandro Colomar <alx@kernel.org> Is it ok to send this patch together with this patch set, or should I send it separately? Cheers, Alex > --- > contrib/gcc-changelog/git_commit.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py > index 87ecb9e1a17..64fb986b74c 100755 > --- a/contrib/gcc-changelog/git_commit.py > +++ b/contrib/gcc-changelog/git_commit.py > @@ -182,7 +182,8 @@ CO_AUTHORED_BY_PREFIX = 'co-authored-by: ' > > REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ', > 'acked-by: ', 'tested-by: ', 'reported-by: ', > - 'suggested-by: ') > + 'suggested-by: ', 'cc: ') > +LINK_PREFIXES = ('link: ') > DATE_FORMAT = '%Y-%m-%d' > > > @@ -524,6 +525,8 @@ class GitCommit: > continue > elif lowered_line.startswith(REVIEW_PREFIXES): > continue > + elif lowered_line.startswith(LINK_PREFIXES): > + continue > else: > m = cherry_pick_regex.search(line) > if m: > -- > 2.45.2 >
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 87ecb9e1a17..64fb986b74c 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -182,7 +182,8 @@ CO_AUTHORED_BY_PREFIX = 'co-authored-by: ' REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ', 'acked-by: ', 'tested-by: ', 'reported-by: ', - 'suggested-by: ') + 'suggested-by: ', 'cc: ') +LINK_PREFIXES = ('link: ') DATE_FORMAT = '%Y-%m-%d' @@ -524,6 +525,8 @@ class GitCommit: continue elif lowered_line.startswith(REVIEW_PREFIXES): continue + elif lowered_line.startswith(LINK_PREFIXES): + continue else: m = cherry_pick_regex.search(line) if m:
contrib/ChangeLog: * gcc-changelog/git_commit.py: (GitCommit): Add support for 'Cc: ' and 'Link: ' tags. Cc: Jason Merrill <jason@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> --- contrib/gcc-changelog/git_commit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)