]> git.ipfire.org Git - thirdparty/git.git/commit
upload-pack: refactor reading of pack-objects out
authorJonathan Tan <jonathantanmy@google.com>
Wed, 10 Jun 2020 20:57:21 +0000 (13:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2020 01:06:34 +0000 (18:06 -0700)
commitacaaca7d7030bb349441da10bf9ca6917f30cbb2
tree2ea97ef716c5b86708b32550804d82d346c5d059
parentcd8402e0fd8cfc0ec9fb10e22ffb6aabd992eae1
upload-pack: refactor reading of pack-objects out

Subsequent patches will change how the output of pack-objects is
processed, so extract that processing into its own function.

Currently, at most 1 character can be buffered (in the "buffered" local
variable). One of those patches will require a larger buffer, so replace
that "buffered" local variable with a buffer array.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c