Re: [PATCH] mailinfo: support format=flowed
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 29, 2018, 20:19 UTC
- Message-ID
- <xmqqo9dk94vh.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <e2f2ca18-849c-0ef4-98a5-9a1379bfcec5@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 8 quoted lines
> Add best-effort support for patches sent using format=flowed (RFC 3676).
> Remove leading spaces ("unstuff"), remove soft line breaks (indicated
> by space + newline), but leave the signature separator (dash dash space
> newline) alone.
>
> Warn in git am when encountering a format=flowed patch, because any
> trailing spaces would most probably be lost, as the sending MUA is
> encouraged to remove them when preparing the email.The warning is a very good idea, but I wonder if it is loud enough when mixed with other noise (e.g. "--whitespace=warn" for a short series, or patch titles when applying a very long series).
Lossage of trailing spaces may even be a feature (just joking), when the project policy makes it OK to use "am --whitespace=fix". I usually use "am --whitespace=fix" but I used "am --whitespace=warn" while applying this patch to preserve lines that begin with "SP SP HT" in the sample patch.