Use packet_reader instead of packet_read_line
commit01f9ec64c8a82a05ba7e5a17b292ede037a469ea
authorMasaya Suzuki <masayasuzuki@google.com>
Sat, 29 Dec 2018 21:19:14 +0000 (29 13:19 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2019 21:05:27 +0000 (2 13:05 -0800)
treecc8f641b1f66482e6796fd66e0c7825ce2a8a79c
parentb21ebb671bb7dea8d342225f0d66c41f4e54d5ca
Use packet_reader instead of packet_read_line

By using and sharing a packet_reader while handling a Git pack protocol
request, the same reader option is used throughout the code. This makes
it easy to set a reader option to the request parsing code.

Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/archive.c
builtin/receive-pack.c
fetch-pack.c
remote-curl.c
send-pack.c
upload-pack.c