pack-objects, streaming: turn "xx >= big_file_threshold" to ".. > .."
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 16 May 2012 12:02:09 +0000 (19:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 May 2012 21:21:19 +0000 (14:21 -0700)
This is because all other places do "xx > big_file_threshold"

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
streaming.c

index 1861093e9db4b951e4cb4c790d4792fe7bc70da7..b2e0940c7ada2997d6871dcae6253725423e9b40 100644 (file)
@@ -1327,7 +1327,7 @@ static void get_object_details(void)
        for (i = 0; i < nr_objects; i++) {
                struct object_entry *entry = sorted_by_offset[i];
                check_object(entry);
-               if (big_file_threshold <= entry->size)
+               if (big_file_threshold < entry->size)
                        entry->no_try_delta = 1;
        }
 
index 3a3cd1206af5465323760e952a836935ac271d32..4d978e54e4fb9d84e81977539ffa083534ef2968 100644 (file)
@@ -121,7 +121,7 @@ static enum input_source istream_source(const unsigned char *sha1,
        case OI_LOOSE:
                return loose;
        case OI_PACKED:
-               if (!oi->u.packed.is_delta && big_file_threshold <= size)
+               if (!oi->u.packed.is_delta && big_file_threshold < size)
                        return pack_non_delta;
                /* fallthru */
        default: