relax delta selection filtering in pack-objects
[gitweb.git] / pack-objects.c
index 0c9f4c9d2390b6f024a3408d5350bb4a19f6c11d..e3946db5ca12075446223c7fd598fb2158f82d21 100644 (file)
@@ -629,11 +629,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;