]> git.99rst.org Git - git.git/commit
upload-pack: rename `enum` to reflect the operation
authorJohannes Schindelin <redacted>
Thu, 15 May 2025 13:11:42 +0000 (13:11 +0000)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
upload-pack.c
git clone https://git.99rst.org/PROJECT