Re: [PATCH 1/3] pretty: support "mboxrd" output format
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 3, 2016, 23:42 UTC
- Message-ID
- <xmqqzir1zvo2.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAPig+cQXA3mgYC3rCTx2h93rB6djdKvYJ+oCXUP24-xk2PqW=Q@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 9 quoted lines
>> static int is_mboxrd_from(const char *line) {
>> return starts_with(line + strspn(line, ">"), "From ");
>> }
>>
>> is sufficiently high-level that no longer is scary, hopefully?
>
> That's nice and concise but unfortunately not useful for this case
> where we must respect the logical end-of-line (within the larger
> buffer), represented by line+linelen.Hmph, none of ">", "F", "r", "o", "m", or " " is "\n"; would eol still be an issue?