upload-pack: change multi_ack to an enum
commite9d882b81e8a2f63f7a58f6717e0c1e2a6a62b6d
authorChristian Couder <christian.couder@gmail.com>
Thu, 4 Jun 2020 17:54:44 +0000 (4 19:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2020 17:58:26 +0000 (4 10:58 -0700)
tree89124ea92debc337ab071bdec652dd2936cf93f6
parent53d69506c1108f5d4f7ac2fccd871946ff012071
upload-pack: change multi_ack to an enum

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's take this opportunity to change the
'multi_ack' variable, which is now part of 'upload_pack_data',
to an enum.

This will make it clear which values this variable can take.

Helped-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c