aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_email.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-06-17 10:41:17 +0200
committerMartin Liska <mliska@suse.cz>2020-06-17 11:37:34 +0200
commit2021af0c23acaa827b5a8c5c5ba82b713f9cff1e (patch)
tree334125cdf41c3dc8c1b707c56e390270deb54673 /contrib/gcc-changelog/git_email.py
parentf062c3f11505b70c5275e5bc0e52f3e441f8afbc (diff)
downloadgcc-2021af0c23acaa827b5a8c5c5ba82b713f9cff1e.zip
gcc-2021af0c23acaa827b5a8c5c5ba82b713f9cff1e.tar.gz
gcc-2021af0c23acaa827b5a8c5c5ba82b713f9cff1e.tar.bz2
gcc-changelog: Support 'Backported from master'.
contrib/ChangeLog: * gcc-changelog/git_commit.py: Print 'Backported from master' heading to backported commits. * gcc-changelog/test_email.py: Test it. * gcc-changelog/test_patches.txt: Add new patch. * gcc-changelog/git_repository.py: Add commit_to_date hook. * gcc-changelog/git_email.py: Add fuzzy implementation of commit_to_date_hook.
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 bf74bd8..2083d7b 100755
--- a/contrib/gcc-changelog/git_email.py
+++ b/contrib/gcc-changelog/git_email.py
@@ -67,7 +67,7 @@ class GitEmail(GitCommit):
t = 'M'
modified_files.append((target, t))
super().__init__(None, date, author, body, modified_files,
- strict=strict)
+ strict=strict, commit_to_date_hook=lambda x: date)
# With zero arguments, process every patch file in the ./patches directory.