aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_email.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-03-12 09:08:36 +0100
committerMartin Liska <mliska@suse.cz>2021-03-12 09:29:05 +0100
commita7ac3e92ecf251d5528eea4b46b5f42fd0168e43 (patch)
tree3264049111e29ecd94f5dc809a1bbc71c96b5c5a /contrib/gcc-changelog/git_email.py
parent48ff383f0d9e917bcb7bcc091af413bcae07b440 (diff)
downloadgcc-a7ac3e92ecf251d5528eea4b46b5f42fd0168e43.zip
gcc-a7ac3e92ecf251d5528eea4b46b5f42fd0168e43.tar.gz
gcc-a7ac3e92ecf251d5528eea4b46b5f42fd0168e43.tar.bz2
gcc-changelog: allow ChangeLog deletion in a commit
contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow deletion of ChangeLog files. * gcc-changelog/setup.cfg: Set line limit to 120 characters. * gcc-changelog/test_email.py: Add test. * gcc-changelog/test_patches.txt: Likewise. * gcc-changelog/git_email.py: Fix parsing of deleted files.
Diffstat (limited to 'contrib/gcc-changelog/git_email.py')
-rwxr-xr-xcontrib/gcc-changelog/git_email.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_email.py b/contrib/gcc-changelog/git_email.py
index 00ad004..b0547b3 100755
--- a/contrib/gcc-changelog/git_email.py
+++ b/contrib/gcc-changelog/git_email.py
@@ -66,7 +66,7 @@ class GitEmail(GitCommit):
t = 'A'
else:
t = 'M'
- modified_files.append((target, t))
+ modified_files.append((target if t != 'D' else source, t))
git_info = GitInfo(None, date, author, body, modified_files)
super().__init__(git_info, strict=strict,
commit_to_info_hook=lambda x: None)