mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
447480a5a6
commit
f97c49398b
2
serve.c
2
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)
|
||||
|
||||
Reference in New Issue
Block a user