accept <case> and [cond] in ChangeLog
authorAlexandre Oliva <oliva@adacore.com>
Tue, 7 Jul 2020 07:02:01 +0000 (09:02 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 7 Jul 2020 07:05:10 +0000 (09:05 +0200)
commita759bfc7cf238b9fc5bf97884297fc69d8cdf2b5
treefd2ec675910cbba7708d5651295fe2466ed9ee1b
parentc50502ca4ebb4d4bd2df9edf1eb5c53aacfa0a1e
accept <case> and [cond] in ChangeLog

Only '(' and ':' currently terminate file lists in ChangeLog entries
in the ChangeLog parser.  This rules out such legitimate entries as:

* filename <CASE>:
* filename [COND]:

This patch extends the ChangeLog parser to recognize these forms.

for  contrib/ChangeLog

* gcc-changelog/git_commit.py: Support CASE and COND.
* gcc-changelog/test_patches.txt: Add test.
* gcc-changelog/test_email.py: Add test.

Co-Authored-By: Martin Liska <mliska@suse.cz>
contrib/gcc-changelog/git_commit.py
contrib/gcc-changelog/test_email.py
contrib/gcc-changelog/test_patches.txt