t0021/rot13-filter: refactor packet reading functions
authorChristian Couder <redacted>
Sun, 5 Nov 2017 21:38:30 +0000 (22:38 +0100)
committerJunio C Hamano <redacted>
Tue, 7 Nov 2017 00:54:41 +0000 (09:54 +0900)
commit2c9ea595a7b855f1005e16dd6272b16d60a8b255
treecb75c324a6744930df6c20763bea3d98759add23
parent0a268826214ae8e50ba504f44067899976f48716
t0021/rot13-filter: refactor packet reading functions

To make it possible in a following commit to move packet
reading and writing functions into a Packet.pm module,
let's refactor these functions, so they don't handle
printing debug output and exiting.

While at it let's create packet_required_key_val_read()
to still handle erroring out in a common case.

Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t0021/rot13-filter.pl
git clone https://git.99rst.org/PROJECT