diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-21 18:47:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-21 18:47:44 -0700 |
commit | bcd45e27d8790d8981d4c6734bc573363121efd3 (patch) | |
tree | 8693e3c78697d0ad72c976e798276c635bbc15cf /git-am.sh | |
parent | f5d5ea525b6aa8b6435d4e8c92f5e797b4076fc0 (diff) | |
parent | c2ca1d79dbd54b06a05e5d14a897699e59dc9f9f (diff) | |
download | git-bcd45e27d8790d8981d4c6734bc573363121efd3.tar.gz |
Merge branch 'bc/mailsplit-cr-at-eol'
* bc/mailsplit-cr-at-eol:
Allow mailsplit (and hence git-am) to handle mails with CRLF line-endings
builtin-mailsplit.c: remove read_line_with_nul() since it is no longer used
builtin-mailinfo,builtin-mailsplit: use strbufs
strbuf: add new function strbuf_getwholeline()
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -211,7 +211,13 @@ check_patch_format () { split_patches () { case "$patch_format" in mbox) - git mailsplit -d"$prec" -o"$dotest" -b -- "$@" > "$dotest/last" || + case "$rebasing" in + '') + keep_cr= ;; + ?*) + keep_cr=--keep-cr ;; + esac + git mailsplit -d"$prec" -o"$dotest" -b $keep_cr -- "$@" > "$dotest/last" || clean_abort ;; stgit-series) |