]> git.ipfire.org Git - thirdparty/git.git/blobdiff - hash-lookup.h
Merge branch 'es/maintenance-of-bare-repositories'
[thirdparty/git.git] / hash-lookup.h
index 5d476dec72c7b20357a6cb448bf1147472a1c152..dbd71ebaf73044ea7d10d6686d6b193b32be6863 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef HASH_LOOKUP_H
 #define HASH_LOOKUP_H
 
-typedef const unsigned char *hash_access_fn(size_t index, void *table);
+typedef const struct object_id *oid_access_fn(size_t index, const void *table);
 
-int hash_pos(const unsigned char *hash,
-            void *table,
-            size_t nr,
-            hash_access_fn fn);
+int oid_pos(const struct object_id *oid,
+           const void *table,
+           size_t nr,
+           oid_access_fn fn);
 
 /*
  * Searches for hash in table, using the given fanout table to determine the