Git/Packet: clarify that packet_required_key_val_read allows EOF
commitcb1c64b4a8eeda9bc576063c3c9eea34d5693560
authorChristian Couder <christian.couder@gmail.com>
Tue, 21 Nov 2017 16:09:38 +0000 (21 17:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Nov 2017 07:23:55 +0000 (22 16:23 +0900)
tree51b90350cf751db8a166edf050405172b23e1fd8
parent0fe8d516bb70c675fc9cea9339247b01f7e96cad
Git/Packet: clarify that packet_required_key_val_read allows EOF

The function calls itself "required", but it does not die when it
sees an unexpected EOF.

Let's rename it to "packet_key_val_read()".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Git/Packet.pm
t/t0021/rot13-filter.pl