diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-20 16:10:02 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-20 16:10:33 +0200 |
commit | 2f809e773e8ecae72331002faf98986dd670580f (patch) | |
tree | 8f2c51d8c4533181d29a6babbbc2388fcbbaa694 /contrib/gcc-changelog/git_commit.py | |
parent | 03d90a20a1afcbb9c30da8d4adf4922b0685061f (diff) | |
download | gcc-2f809e773e8ecae72331002faf98986dd670580f.zip gcc-2f809e773e8ecae72331002faf98986dd670580f.tar.gz gcc-2f809e773e8ecae72331002faf98986dd670580f.tar.bz2 |
git_email.py: fix duplicate author_lines.
* gcc-changelog/git_commit.py: Add author_tuple
only if not present in author_lines.
* gcc-changelog/test_email.py: New test.
* gcc-changelog/test_patches.txt: Add new patch.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index e4903ca..8c347d1 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -381,7 +381,8 @@ class GitCommit: self.changelog_entries.append(last_entry) will_deduce = True elif author_tuple: - last_entry.author_lines.append(author_tuple) + if author_tuple not in last_entry.author_lines: + last_entry.author_lines.append(author_tuple) continue if not line.startswith('\t'): |