aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-01-04 09:53:58 +0100
committerMartin Liska <mliska@suse.cz>2021-01-04 10:09:07 +0100
commit8869bd0efcd491fc57666a62d06f0e3898fa0d64 (patch)
tree7f674e9741009bef7bfd17ac1ec5026abfcf1efc
parentb4cdbb93357e6074279e3af29f79abf55e5a7b55 (diff)
downloadgcc-8869bd0efcd491fc57666a62d06f0e3898fa0d64.zip
gcc-8869bd0efcd491fc57666a62d06f0e3898fa0d64.tar.gz
gcc-8869bd0efcd491fc57666a62d06f0e3898fa0d64.tar.bz2
gcc-changelog: Ignore copyright years commits.
contrib/ChangeLog: * gcc-changelog/git_commit.py: Skip Update copyright years commits.
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index f9cb8cb..d2e5dbe 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -276,6 +276,10 @@ class GitCommit:
self.revert_commit = None
self.commit_to_info_hook = commit_to_info_hook
+ # Skip Update copyright years commits
+ if self.info.lines and self.info.lines[0] == 'Update copyright years.':
+ return
+
# Identify first if the commit is a Revert commit
for line in self.info.lines:
m = revert_regex.match(line)