Re: [PATCH] am: fix patch format detection for Thunderbird "Save As" emails
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 18, 2009, 00:15 UTC
- Message-ID
- <7vtyvpcf36.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1261094299-22930-1-git-send-email-bebarino@gmail.com>
Stephen Boyd <bebarino@gmail.com> writes:
> I'm not sure how portable \r in a sed invocation is.
Not very portable.
Adding
tr -d '\015' <"$1" |
in front of the original "sed" invocation might be a better choice.
> but seems necessary because check_patch_format() is called before any > splitting with mailsplit is done (where I assume the fix for the issue > will be done).
I agree that the way non-native mbox format was bolted onto "am" is somewhat unfortunate.