]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc-changelog: Add warning for auto-added files
authorTobias Burnus <tobias@codesourcery.com>
Mon, 19 Dec 2022 11:12:16 +0000 (12:12 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 19 Dec 2022 11:12:16 +0000 (12:12 +0100)
commit2b2cec58ff502966004f79d1c9a2862c756b8509
treee3e8e5c423530a5fdafef77c587f0238dd90224c
parent03fb35f8753d87148b29b3f34b6154abe7db4c41
gcc-changelog: Add warning for auto-added files

git_email.py prints now a warning for files added automatically.
git_check_commit.py does likewise but only with --verbose.
It prints one line per ChangeLog file, either stating the file
or if more than one the number of files.

contrib/ChangeLog:

* gcc-changelog/git_check_commit.py (__main__): With -v print a
warning for the auto-added files.
* gcc-changelog/git_commit.py (GitCommit.__init__): Add self.warnings.
(GitCommit.check_mentioned_files): Add warning for auto-added files.
(GitCommit.print_warnings): New function.
* gcc-changelog/git_email.py (__main__): Remove bogus argument to
GitEmail constructor; print auto-added-files warning.
* gcc-changelog/test_email.py (test_auto_add_file_1,
test_auto_add_file_2): New tests.
* gcc-changelog/test_patches.txt: Add two test cases.
contrib/gcc-changelog/git_check_commit.py
contrib/gcc-changelog/git_commit.py
contrib/gcc-changelog/git_email.py
contrib/gcc-changelog/test_email.py
contrib/gcc-changelog/test_patches.txt