[v17,1/2] contrib/: Add support for Cc: and Link: tags
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
Commit Message
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(-)
@@ -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: