]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: return enum from process_acks()
authorJonathan Tan <jonathantanmy@google.com>
Tue, 28 Apr 2020 00:01:08 +0000 (17:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2020 16:54:48 +0000 (09:54 -0700)
commitd1185aa6fab2c12016e92ac9b9e448984cdc6c5d
treedf49c63739c8cacdbc0b7c6723e5422aacf6dc27
parent7397ca33730626f682845f8691b39c305535611e
fetch-pack: return enum from process_acks()

process_acks() returns 0, 1, or 2, depending on whether "ready" was
received and if not, whether at least one commit was found to be common.
Replace these magic numbers with a documented enum.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c