Re: [PATCH 2/2] format-patch: escape "From " lines recognized by mailsplit

2016-07-24 Thread Jeff King
On Sun, Jul 24, 2016 at 09:37:57AM +0200, Johannes Schindelin wrote: > On Sun, 24 Jul 2016, Eric Wong wrote: > > > @@ -1745,9 +1746,18 @@ void pp_remainder(struct pretty_print_context *pp, > > strbuf_add_tabexpand(sb, pp->expand_tabs_in_log, > >

Re: [PATCH 2/2] format-patch: escape "From " lines recognized by mailsplit

2016-07-24 Thread Johannes Schindelin
Hi Eric, On Sun, 24 Jul 2016, Eric Wong wrote: > @@ -1745,9 +1746,18 @@ void pp_remainder(struct pretty_print_context *pp, > strbuf_add_tabexpand(sb, pp->expand_tabs_in_log, >line, linelen); > else { > -

[PATCH 2/2] format-patch: escape "From " lines recognized by mailsplit

2016-07-23 Thread Eric Wong
Users have mistakenly copied "From " lines into commit messages in the past, and will certainly make the same mistakes in the future. Since not everyone uses mboxrd, yet, we should at least prevent miss-split mails by always escaping "From " lines based on the check used by mailsplit. mailsplit w