summaryrefslogtreecommitdiff
path: root/perl/Git/Packet.pm
Commit message (Collapse)AuthorAgeFilesLines
* Git/Packet.pm: use 'if' instead of 'unless'cc/git-packet-pmChristian Couder2017-11-221-8/+8
| | | | | | | The code is more understandable with 'if' instead of 'unless'. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Git/Packet: clarify that packet_required_key_val_read allows EOFChristian Couder2017-11-221-2/+7
| | | | | | | | | | 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>
* Git/Packet.pm: extract parts of t0021/rot13-filter.pl for reuseChristian Couder2017-11-071-0/+168
And while at it let's simplify t0021/rot13-filter.pl by using Git/Packet.pm. This will make it possible to reuse packet related functions in other test scripts. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>