changelog: Allow wildcard pattern only.
authorMartin Liska <mliska@suse.cz>
Mon, 30 Nov 2020 09:37:57 +0000 (10:37 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 30 Nov 2020 09:40:36 +0000 (10:40 +0100)
contrib/ChangeLog:

* gcc-changelog/git_commit.py: Allow wildcard pattern only.

contrib/gcc-changelog/git_commit.py

index d0ac23c22aa48b1baae02edf91386dff9d695760..5366d95469c88f8f433c6d4fa2378d1b489a07bf 100755 (executable)
@@ -560,7 +560,7 @@ class GitCommit:
         mentioned_patterns = []
         used_patterns = set()
         for entry in self.changelog_entries:
-            if not entry.files:
+            if not entry.files and not entry.file_patterns:
                 msg = 'no files mentioned for ChangeLog in directory'
                 self.errors.append(Error(msg, entry.folder))
             assert not entry.folder.endswith('/')