gcc-changelog: Ignore copyright years commits.
authorMartin Liska <mliska@suse.cz>
Mon, 4 Jan 2021 08:53:58 +0000 (09:53 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 4 Jan 2021 09:09:07 +0000 (10:09 +0100)
contrib/ChangeLog:

* gcc-changelog/git_commit.py: Skip Update copyright
years commits.

contrib/gcc-changelog/git_commit.py

index f9cb8cbf0308ed0a01d5ec9be7f2c93fb750e0e4..d2e5dbe294a3d0d325f86290f869095685b53e1b 100755 (executable)
@@ -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)