Re: [PATCH 3/7] pack-protocol.txt: Mark all LFs in push-cert as required
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 6, 2015, 17:59 UTC
- Message-ID
- <xmqqbnfp180x.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAD0k6qQhER7cDsSG21CnnMxZE+B1BbQh1AkcAgiS3Jpm6WEMcQ@mail.gmail.com>
Dave Borowitz <dborowitz@google.com> writes:
>> That existing implementations of the receivers treat an empty packet >> (i.e. "0004") > > or "0005\n" ;)
Is that true? I think
len = pkt_line();
if (!len)
break; /* flush */would give you len == 1 and would not confuse it with a flush.