Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ml/cvs' into next
[gitweb.git]
/
pack-objects.c
diff --git
a/pack-objects.c
b/pack-objects.c
index ceb107f63fad491423da8795360331ae0825597a..4f8814d8ee27773af52d4b16e5fd82d8b88b57df 100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-748,11
+748,10
@@
static int try_delta(struct unpacked *cur, struct unpacked *old, unsigned max_de
}
size = cur_entry->size;
- if (size < 50)
- return -1;
oldsize = old_entry->size;
sizediff = oldsize > size ? oldsize - size : size - oldsize;
- if (sizediff > size / 8)
+
+ if (size < 50)
return -1;
if (old_entry->depth >= max_depth)
return 0;