aboutsummaryrefslogtreecommitdiff
path: root/serve.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2026-02-07 20:04:33 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-07 17:41:01 -0800
commit67e526c33e025918c146c7cb61007cc2ffc46661 (patch)
tree3ebe08b801c7f4498e6e9ab01608dd19b463205d /serve.c
parent9c317a68b7abc82a9c3c024baa318a29da970c4f (diff)
downloadgit-67e526c33e025918c146c7cb61007cc2ffc46661.tar.xz
hash: use uint32_t for object_id algorithm
We currently use an int for this value, but we'll define this structure from Rust in a future commit and we want to ensure that our data types are exactly identical. To make that possible, use a uint32_t for the hash algorithm. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'serve.c')
-rw-r--r--serve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.c b/serve.c
index 53ecab3b42..49a6e39b1d 100644
--- a/serve.c
+++ b/serve.c
@@ -14,7 +14,7 @@
static int advertise_sid = -1;
static int advertise_object_info = -1;
-static int client_hash_algo = GIT_HASH_SHA1_LEGACY;
+static uint32_t client_hash_algo = GIT_HASH_SHA1_LEGACY;
static int always_advertise(struct repository *r UNUSED,
struct strbuf *value UNUSED)