From: Junio C Hamano Date: Wed, 5 Aug 2009 03:31:59 +0000 (-0500) Subject: Allow mailsplit (and hence git-am) to handle mails with CRLF line-endings X-Git-Tag: v1.6.5-rc0~54^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c2ca1d79dbd54b06a05e5d14a897699e59dc9f9f?hp=c2ca1d79dbd54b06a05e5d14a897699e59dc9f9f Allow mailsplit (and hence git-am) to handle mails with CRLF line-endings It is not that uncommon to have mails with DOS line-ending, notably Thunderbird and web mailers like Gmail (when saving what they call "original" message). So modify mailsplit to convert CRLF line-endings to just LF. Since git-rebase is built on top of git-am, add an option to mailsplit to be used by git-am when it is acting on behalf of git-rebase, to refrain from doing this conversion. And add a test to make sure that rebase still works. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano ---