diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-25 09:49:09 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-25 09:49:54 +0200 |
commit | deea3defc9802fcf3f8ea4e45f29dd1ad8fb3cef (patch) | |
tree | 89c4753a91569894d8cc450a7670f0b497388ebc /contrib/gcc-changelog/git_commit.py | |
parent | a27aceb98a1178297cefb6eabe24d8a2ea4b72cd (diff) | |
download | gcc-deea3defc9802fcf3f8ea4e45f29dd1ad8fb3cef.zip gcc-deea3defc9802fcf3f8ea4e45f29dd1ad8fb3cef.tar.gz gcc-deea3defc9802fcf3f8ea4e45f29dd1ad8fb3cef.tar.bz2 |
Allow only ignored files in ChangeLog entries.
* gcc-changelog/git_commit.py: Add trailing '/'
for libdruntime. Allow empty changelog for
only ignored files.
* gcc-changelog/test_email.py: New test for go
patch in ignored location.
* gcc-changelog/test_patches.txt: Add test.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 8c5fa2c..2cfdbc8 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -130,7 +130,7 @@ ignored_prefixes = [ 'gcc/go/gofrontend/', 'gcc/testsuite/go.test/test/', 'libgo/', - 'libphobos/libdruntime', + 'libphobos/libdruntime/', 'libphobos/src/', 'libsanitizer/', ] @@ -233,7 +233,8 @@ class GitCommit: project_files = [f for f in self.modified_files if self.is_changelog_filename(f[0]) - or f[0] in misc_files] + or f[0] in misc_files + or self.in_ignored_location(f[0])] if len(project_files) == len(self.modified_files): # All modified files are only MISC files return |