]> git.ipfire.org Git - thirdparty/git.git/commit
upload-pack: rename `enum` to reflect the operation
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 15 May 2025 13:11:42 +0000 (13:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 May 2025 20:46:46 +0000 (13:46 -0700)
commitbf0468e2ba64ac358a61cb01a675b7c5919d64fd
treea04f34b401ebc3b619f76ad507838007d4500494
parent7f3ed75ff551e2ca4f8eb0242784e7aacbb14fb3
upload-pack: rename `enum` to reflect the operation

While 3145ea957d (upload-pack: introduce fetch server command,
2018-03-15) added support for the `fetch` command, from the server's
point of view it is an upload, and hence the `enum` should really be
called `upload_state` instead of `fetch_state`. Likewise, rename its
values.

This also helps unconfuse CodeQL which would otherwise be at sixes or
sevens about having _two_ non-local definitions of the same `enum` with
the same values.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c