]> git.ipfire.org Git - thirdparty/git.git/commit
upload-pack: change allow_unadvertised_object_request to an enum
authorChristian Couder <christian.couder@gmail.com>
Thu, 11 Jun 2020 12:05:12 +0000 (14:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2020 20:35:35 +0000 (13:35 -0700)
commit629060d9bb5a1ab63d51b1a8fbe19384c1559140
treea93e55c9beb9ab8cbd1f3ae2fb2942419d56f66a
parentf1514c6aad0de2937fb1bb22a5f93ef931757600
upload-pack: change allow_unadvertised_object_request to an enum

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's change allow_unadvertised_object_request,
which is now part of 'upload_pack_data', from an 'unsigned int'
to an enum.

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

While at it let's change this variable name to 'allow_uor' to
make it shorter.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c