From 7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C3=85gren?= Date: Thu, 31 Dec 2020 12:56:22 +0100 Subject: sha1-lookup: rename `sha1_pos()` as `hash_pos()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename this function to reflect that we're not just able to handle SHA-1 these days. There are a few instances of "sha1" left in sha1-lookup.[ch] after this, but those will be addressed in the next commit. Signed-off-by: Martin Ă…gren Reviewed-by: Derrick Stolee Signed-off-by: Junio C Hamano --- oid-array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oid-array.c') diff --git a/oid-array.c b/oid-array.c index 8e1bcedc0c..fb4c3dd795 100644 --- a/oid-array.c +++ b/oid-array.c @@ -31,7 +31,7 @@ static const unsigned char *sha1_access(size_t index, void *table) int oid_array_lookup(struct oid_array *array, const struct object_id *oid) { oid_array_sort(array); - return sha1_pos(oid->hash, array->oid, array->nr, sha1_access); + return hash_pos(oid->hash, array->oid, array->nr, sha1_access); } void oid_array_clear(struct oid_array *array) -- cgit v1.2.3