Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert "oidcmp() != 0" to "!oideq()"
[gitweb.git]
/
pack-objects.c
diff --git
a/pack-objects.c
b/pack-objects.c
index 6ef87e5683aacdf738c86679712078988c0899fd..2bc762699770d80a55d80a0231c04040973558cd 100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-16,7
+16,7
@@
static uint32_t locate_object_entry_hash(struct packing_data *pdata,
while (pdata->index[i] > 0) {
uint32_t pos = pdata->index[i] - 1;
- if (
!hashcmp
(sha1, pdata->objects[pos].idx.oid.hash)) {
+ if (
hasheq
(sha1, pdata->objects[pos].idx.oid.hash)) {
*found = 1;
return i;
}