aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_email.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-12-11 17:18:12 +0100
committerMartin Liska <mliska@suse.cz>2022-12-11 17:22:25 +0100
commitb045179973161115c7ea029b2788f5156fc55cda (patch)
treefa6e261f5badad137e27f1589c0b4d5b4bfb44b0 /contrib/gcc-changelog/git_email.py
parent6d799f0aed18be25a5c908499b6411ab6d06b78c (diff)
downloadgcc-b045179973161115c7ea029b2788f5156fc55cda.zip
gcc-b045179973161115c7ea029b2788f5156fc55cda.tar.gz
gcc-b045179973161115c7ea029b2788f5156fc55cda.tar.bz2
unidiff: use newline='\n' argument
In order to support CR on a line, we need to open files with newline='\n' as our line endings supposed to be of UNIX style. contrib/ChangeLog: * check_GNU_style.py: Use newline=\n. * check_GNU_style_lib.py: Simplify. * gcc-changelog/git_commit.py: Fix issues seen Rust patchset. * gcc-changelog/git_email.py: Use newline argument. * gcc-changelog/test_email.py: New test. * gcc-changelog/test_patches.txt: New test. * mklog.py: Use newline argument.
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 87b419c..2566d41 100755
--- a/contrib/gcc-changelog/git_email.py
+++ b/contrib/gcc-changelog/git_email.py
@@ -37,7 +37,7 @@ unidiff_supports_renaming = hasattr(PatchedFile(), 'is_rename')
class GitEmail(GitCommit):
def __init__(self, filename):
self.filename = filename
- diff = PatchSet.from_filename(filename)
+ diff = PatchSet.from_filename(filename, newline='\n')
date = None
author = None
subject = ''