Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Convert sha1_array_lookup to take struct object_id
[gitweb.git]
/
builtin
/
pack-objects.c
diff --git
a/builtin/pack-objects.c
b/builtin/pack-objects.c
index dca1b68e69eb5af79f2c96d5afa143539eca30d7..028c7be9a2330bee79f1786a2ccf3d950a87cfdf 100644
(file)
--- a/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@
-2677,7
+2677,7
@@
static int loosened_object_can_be_discarded(const struct object_id *oid,
return 0;
if (mtime > unpack_unreachable_expiration)
return 0;
- if (sha1_array_lookup(&recent_objects, oid
->hash
) >= 0)
+ if (sha1_array_lookup(&recent_objects, oid) >= 0)
return 0;
return 1;
}