Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
hashmap: convert sha1hash() to oidhash()
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index 317647da3e55985a23194229926af1ecaae4b65f..94db02214acfe788b567c9a9c277438a8b59f2a4 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-61,7
+61,7
@@
int type_from_string_gently(const char *str, ssize_t len, int gentle)
*/
static unsigned int hash_obj(const struct object_id *oid, unsigned int n)
{
- return
sha1hash(oid->hash
) & (n - 1);
+ return
oidhash(oid
) & (n - 1);
}
/*