From: Martin Liska Date: Mon, 30 Nov 2020 09:37:57 +0000 (+0100) Subject: changelog: Allow wildcard pattern only. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbbce1c6e98dec378955b1a591d2dff31caa01f5;p=gcc.git changelog: Allow wildcard pattern only. contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow wildcard pattern only. --- diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index d0ac23c22aa..5366d95469c 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -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('/')